随笔分类 - OJ----Codeforces
摘要:A. Superhero Transformation 签 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 1010 5 char s[N], t[N], Hash[N]; 6 7 bool ok() 8 { 9 int
阅读全文
摘要:A. Lunar New Year and Cross Counting 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 510 5 int n; 6 char G[N][N]; 7 8 int main() 9
阅读全文
摘要:A. Salem and Sticks 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 1010 5 int n, a[N]; 6 7 int work(int x) 8 { 9 int res = 0; 10 f
阅读全文
摘要:A. Definite Game 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 int a; 7 while (scanf("%d", &a) != EOF) 8 { 9 [](int x) 10
阅读全文
摘要:A. Digits Sequence Dividing 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 1010 5 char s[N]; int n; 6 7 void solve() 8 { 9 if (n =
阅读全文
摘要:A. Splitting into digits Solved. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int n; 5 6 void solve() 7 { 8 printf("%d\n", n); 9 for (int i =
阅读全文
摘要:A. Roman and Browser 签到. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int n, k, a[110]; 5 6 int get(int b) 7 { 8 int vis[110]; 9 memset(vis,
阅读全文
摘要:A. Minimum Integer 签到。 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define ll long long 5 ll l, r, d; 6 7 int main() 8 { 9 int t; scanf("%d"
阅读全文
摘要:A. Snowball 签。 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int w, h, u[2], d[2]; 5 6 int main() 7 { 8 while (scanf("%d%d", &w, &h) != EOF) 9
阅读全文
摘要:A. Gennady and a Card Game 签到. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 char s[5], t[5]; 5 6 bool solve() 7 { 8 int flag = false; 9 for (
阅读全文
摘要:A. New Year and the Christmas Ornament 签到。 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int a, b, c; 5 6 int main() 7 { 8 while (scanf("%d%d%
阅读全文
摘要:A. Find Divisible 签到。 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int t, l, r; 5 6 int main() 7 { 8 scanf("%d", &t); 9 while (t--) 10 { 11 s
阅读全文
摘要:A. Right-Left Cipher Solved. 注意长度的奇偶 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 string s; 5 int main() 6 { 7 while (cin >> s) 8 { 9 string
阅读全文
摘要:A. Dice Rolling 签到. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int t, n; 5 6 int main() 7 { 8 scanf("%d", &t); 9 while (t--) 10 { 11 scanf(
阅读全文
摘要:A. The Fair Nut and Elevator Solved. 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 110 5 int n, a[N]; 6 7 int main() 8 { 9 while
阅读全文
摘要:A. Ehab and another construction problem Water. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int x; 5 6 int main() 7 { 8 while (scanf("%d", &
阅读全文
摘要:A. Determine Line Water. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int n, vis[110]; 5 6 int main() 7 { 8 while (scanf("%d", &n) != EOF) 9
阅读全文
摘要:A. Vasya and Book Solved. 三种方式取$Min$ 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define ll long long 5 #define INF 0x3f3f3f3f3f3f3f3f 6 int
阅读全文
摘要:A. Petya and Origami Water. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define ll long long 5 ll n, k; 6 7 ll Get(ll x) 8 { 9 return (x * n
阅读全文
摘要:A. Coins Water. 1 #include <bits/stdc++.h> 2 using namespace std; 3 int n, s; 4 5 int main() 6 { 7 while (scanf("%d%d", &n, &s) != EOF) 8 { 9 int res
阅读全文

浙公网安备 33010602011771号