summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-12-02 15:23:14 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-12-02 15:23:32 +0800
commit97d17d48d298ffd0bd19e9837fd1ef0542c21584 (patch)
treeb90f2e703989c4b9280a4ef7be45f32cbeaf3c1a
parent228ddc94ba315c817fe52df83a886c299a2eaaf6 (diff)
remove: bracets
-rw-r--r--2024/1A.cpp4
-rw-r--r--2024/1B.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/2024/1A.cpp b/2024/1A.cpp
index 9cffc3b..1f97a1b 100644
--- a/2024/1A.cpp
+++ b/2024/1A.cpp
@@ -6,9 +6,9 @@ int main(int argc, char const *argv[])
{
int res = 0;
std::vector<std::string> file = readfile("1.in");
- if (file.empty()) {
+ if (file.empty())
return 1;
- }
+
std::vector<int> left, right;
for (const auto &line : file) {
int n1, n2;
diff --git a/2024/1B.cpp b/2024/1B.cpp
index f6dff14..12ef4a7 100644
--- a/2024/1B.cpp
+++ b/2024/1B.cpp
@@ -6,9 +6,9 @@ int main(int argc, char const *argv[])
{
int res = 0;
std::vector<std::string> file = readfile("2.in");
- if (file.empty()) {
+ if (file.empty())
return 1;
- }
+
std::vector<int> left, right;
for (const auto &line : file) {
int n1, n2;
@@ -38,4 +38,4 @@ int main(int argc, char const *argv[])
}
std::cout << res << std::endl;
-} \ No newline at end of file
+}