diff --git a/Luogu/CF1A/CF1A.cpp b/Codeforces/1/A/A.cpp similarity index 100% rename from Luogu/CF1A/CF1A.cpp rename to Codeforces/1/A/A.cpp diff --git a/Luogu/CF1041C/CF1041C.cpp b/Codeforces/1041/C/C.cpp similarity index 100% rename from Luogu/CF1041C/CF1041C.cpp rename to Codeforces/1041/C/C.cpp diff --git a/Luogu/CF1146A/CF1146A.cpp b/Codeforces/1146/A/A.cpp similarity index 100% rename from Luogu/CF1146A/CF1146A.cpp rename to Codeforces/1146/A/A.cpp diff --git a/Luogu/CF1154G/CF1154G.cpp b/Codeforces/1154/G/G.cpp similarity index 100% rename from Luogu/CF1154G/CF1154G.cpp rename to Codeforces/1154/G/G.cpp diff --git a/Luogu/CF1166E/CF1166E.cpp b/Codeforces/1166/E/E.cpp similarity index 100% rename from Luogu/CF1166E/CF1166E.cpp rename to Codeforces/1166/E/E.cpp diff --git a/Luogu/CF12A/CF12A.cpp b/Codeforces/12/A/A.cpp similarity index 100% rename from Luogu/CF12A/CF12A.cpp rename to Codeforces/12/A/A.cpp diff --git a/Luogu/CF1374A/CF1374A.cpp b/Codeforces/1374/A/A.cpp similarity index 100% rename from Luogu/CF1374A/CF1374A.cpp rename to Codeforces/1374/A/A.cpp diff --git a/Luogu/CF14A/CF14A.cpp b/Codeforces/14/A/A.cpp similarity index 100% rename from Luogu/CF14A/CF14A.cpp rename to Codeforces/14/A/A.cpp diff --git a/Luogu/CF1421A/CF1421A.cpp b/Codeforces/1421/A/A.cpp similarity index 100% rename from Luogu/CF1421A/CF1421A.cpp rename to Codeforces/1421/A/A.cpp diff --git a/Luogu/CF1445A/CF1445A.cpp b/Codeforces/1445/A/A.cpp similarity index 100% rename from Luogu/CF1445A/CF1445A.cpp rename to Codeforces/1445/A/A.cpp diff --git a/Luogu/CF1551A/CF1551A.cpp b/Codeforces/1551/A/A.cpp similarity index 100% rename from Luogu/CF1551A/CF1551A.cpp rename to Codeforces/1551/A/A.cpp diff --git a/Luogu/CF1553A/CF1553A.cpp b/Codeforces/1553/A/A.cpp similarity index 100% rename from Luogu/CF1553A/CF1553A.cpp rename to Codeforces/1553/A/A.cpp diff --git a/Luogu/CF1573A/CF1573A.cpp b/Codeforces/1573/A/A.cpp similarity index 100% rename from Luogu/CF1573A/CF1573A.cpp rename to Codeforces/1573/A/A.cpp diff --git a/Luogu/CF19B/CF19B.cpp b/Codeforces/19/B/B.cpp similarity index 100% rename from Luogu/CF19B/CF19B.cpp rename to Codeforces/19/B/B.cpp diff --git a/Luogu/CF2A/CF2A.cpp b/Codeforces/2/A/A.cpp similarity index 100% rename from Luogu/CF2A/CF2A.cpp rename to Codeforces/2/A/A.cpp diff --git a/Luogu/CF20A/CF20A.cpp b/Codeforces/20/A/A.cpp similarity index 100% rename from Luogu/CF20A/CF20A.cpp rename to Codeforces/20/A/A.cpp diff --git a/Luogu/CF25A/CF25A.cpp b/Codeforces/25/A/A.cpp similarity index 100% rename from Luogu/CF25A/CF25A.cpp rename to Codeforces/25/A/A.cpp diff --git a/Luogu/CF25B/CF25B.cpp b/Codeforces/25/B/B.cpp similarity index 100% rename from Luogu/CF25B/CF25B.cpp rename to Codeforces/25/B/B.cpp diff --git a/Luogu/CF27E/CF27E.cpp b/Codeforces/27/E/E.cpp similarity index 100% rename from Luogu/CF27E/CF27E.cpp rename to Codeforces/27/E/E.cpp diff --git a/Luogu/CF294B/CF294B.cpp b/Codeforces/294/B/B.cpp similarity index 100% rename from Luogu/CF294B/CF294B.cpp rename to Codeforces/294/B/B.cpp diff --git a/Luogu/CF383C/CF383C.cpp b/Codeforces/383/C/C.cpp similarity index 100% rename from Luogu/CF383C/CF383C.cpp rename to Codeforces/383/C/C.cpp diff --git a/Luogu/CF4A/CF4A.cpp b/Codeforces/4/A/A.cpp similarity index 100% rename from Luogu/CF4A/CF4A.cpp rename to Codeforces/4/A/A.cpp diff --git a/Luogu/CF438D/CF438D.cpp b/Codeforces/438/D/D.cpp similarity index 100% rename from Luogu/CF438D/CF438D.cpp rename to Codeforces/438/D/D.cpp diff --git a/Luogu/CF444C/CF444C.cpp b/Codeforces/444/C/C.cpp similarity index 100% rename from Luogu/CF444C/CF444C.cpp rename to Codeforces/444/C/C.cpp diff --git a/Luogu/CF47A/CF47A.cpp b/Codeforces/47/A/A.cpp similarity index 100% rename from Luogu/CF47A/CF47A.cpp rename to Codeforces/47/A/A.cpp diff --git a/Luogu/CF6A/CF6A.cpp b/Codeforces/6/A/A.cpp similarity index 100% rename from Luogu/CF6A/CF6A.cpp rename to Codeforces/6/A/A.cpp diff --git a/Luogu/CF617E/CF617E.cpp b/Codeforces/617/E/E.cpp similarity index 100% rename from Luogu/CF617E/CF617E.cpp rename to Codeforces/617/E/E.cpp diff --git a/Luogu/CF730I/CF730I.cpp b/Codeforces/730/I/I.cpp similarity index 100% rename from Luogu/CF730I/CF730I.cpp rename to Codeforces/730/I/I.cpp diff --git a/Luogu/CF845C/CF845C.cpp b/Codeforces/845/C/C.cpp similarity index 100% rename from Luogu/CF845C/CF845C.cpp rename to Codeforces/845/C/C.cpp diff --git a/Luogu/CF869C/CF869C.cpp b/Codeforces/869/C/C.cpp similarity index 100% rename from Luogu/CF869C/CF869C.cpp rename to Codeforces/869/C/C.cpp diff --git a/Luogu/CF9A/CF9A.cpp b/Codeforces/9/A/A.cpp similarity index 100% rename from Luogu/CF9A/CF9A.cpp rename to Codeforces/9/A/A.cpp diff --git a/Luogu/CF920F/CF920F.cpp b/Codeforces/920/F/F.cpp similarity index 100% rename from Luogu/CF920F/CF920F.cpp rename to Codeforces/920/F/F.cpp diff --git a/Luogu/CF1581A/CF1581A.cpp b/Luogu/CF1581A/CF1581A.cpp deleted file mode 100644 index 5c33a7a1..00000000 --- a/Luogu/CF1581A/CF1581A.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include - -using namespace std; - -const int mod = 1000000007; - -int t, inv[100005]; -long long n, ans; - -int main() { - cin >> t; - while (t--) { - ans = 1; - cin >> n; - n *= 2; - while (n) { - ans = ans * n-- % mod; - } - cout << ans * 500000004 % mod << endl; - } - return 0; -} diff --git a/Luogu/CF1598A/CF1598A.cpp b/Luogu/CF1598A/CF1598A.cpp deleted file mode 100644 index e4e6c9cf..00000000 --- a/Luogu/CF1598A/CF1598A.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma GCC optimize("Ofast") - -#include - -using namespace std; - -int t, n; -string s[2]; -bool flag; - -int main() { - std::ios::sync_with_stdio(false); - cin >> t; - while (t--) { - flag = true; - cin >> n >> s[0] >> s[1]; - for (int i = 0; i < n; i++) { - if (s[0][i] == '1' && s[1][i] == '1') { - flag = false; - } - } - cout << (flag ? "YES" : "NO") << endl; - } - return 0; -} diff --git a/Luogu/CF1598B/CF1598B.cpp b/Luogu/CF1598B/CF1598B.cpp deleted file mode 100644 index dbee78b0..00000000 --- a/Luogu/CF1598B/CF1598B.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include - -using namespace std; - -int t, n, cnt, l, r, a[1005][6]; -bool flag; - -int main() { - cin >> t; - while (t--) { - flag = false; - cin >> n; - for (int i = 1; i <= n; i++) { - for (int j = 1; j <= 5; j++) { - cin >> a[i][j]; - } - } - for (int i = 1; i <= 5; i++) { - for (int j = i + 1; j <= 5; j++) { - cnt = l = r = 0; - for (int k = 1; k <= n; k++) { - if (a[k][i] == 1 && a[k][j] == 1) { - cnt++; - } else { - l += a[k][i]; - r += a[k][j]; - } - } - if (cnt + l + r == n && l <= n / 2 && r <= n / 2) { - flag = true; - break; - } - } - } - cout << (flag ? "Yes" : "No") << endl; - } - return 0; -} diff --git a/Luogu/CF1606A/CF1606A.cpp b/Luogu/CF1606A/CF1606A.cpp deleted file mode 100644 index c0a9e4b0..00000000 --- a/Luogu/CF1606A/CF1606A.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include - -using namespace std; - -int t; -string s; - -int main() { - cin >> t; - while (t--) { - cin >> s; - s[0] = *s.rbegin(); - cout << s << endl; - } - return 0; -}