From 66549e703cc76281439235fbb9f5024a54cf86c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Sat, 20 Jan 2024 18:45:29 +0800 Subject: [PATCH] 'commit' --- TangDou/LuoGuBook/51nod_1909_2_in.txt | 2 ++ TangDou/LuoGuBook/51nod_1909_2_out.txt | 1 + TangDou/LuoGuBook/ZhiMuSanJiaoXing.cpp | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 TangDou/LuoGuBook/51nod_1909_2_in.txt create mode 100644 TangDou/LuoGuBook/51nod_1909_2_out.txt diff --git a/TangDou/LuoGuBook/51nod_1909_2_in.txt b/TangDou/LuoGuBook/51nod_1909_2_in.txt new file mode 100644 index 0000000..f6034c3 --- /dev/null +++ b/TangDou/LuoGuBook/51nod_1909_2_in.txt @@ -0,0 +1,2 @@ +4 +abccddadca diff --git a/TangDou/LuoGuBook/51nod_1909_2_out.txt b/TangDou/LuoGuBook/51nod_1909_2_out.txt new file mode 100644 index 0000000..90fa45a --- /dev/null +++ b/TangDou/LuoGuBook/51nod_1909_2_out.txt @@ -0,0 +1 @@ +ac diff --git a/TangDou/LuoGuBook/ZhiMuSanJiaoXing.cpp b/TangDou/LuoGuBook/ZhiMuSanJiaoXing.cpp index a736d88..d385084 100644 --- a/TangDou/LuoGuBook/ZhiMuSanJiaoXing.cpp +++ b/TangDou/LuoGuBook/ZhiMuSanJiaoXing.cpp @@ -60,7 +60,7 @@ bool check(Node a, Node b, Node c) { int main() { #ifndef ONLINE_JUDGE - freopen("ZhiMuSanJiaoXing.in", "r", stdin); + freopen("51nod_1909_2_in.txt", "r", stdin); #endif cin >> n; @@ -88,7 +88,7 @@ int main() { cout << "No Solution" << endl; else { sort(res.begin(), res.end()); - for (char x : res) cout << x << endl; + for (char x : res) cout << x; } return 0; } \ No newline at end of file