随笔分类 -  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 阅读全文
posted @ 2019-02-04 08:50 Dup4 阅读(404) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-02-01 08:56 Dup4 阅读(242) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-01-31 15:37 Dup4 阅读(196) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-01-29 08:09 Dup4 阅读(236) 评论(0) 推荐(0)
摘要: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 = 阅读全文
posted @ 2019-01-27 07:59 Dup4 阅读(335) 评论(0) 推荐(0)
摘要: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 = 阅读全文
posted @ 2019-01-23 07:04 Dup4 阅读(268) 评论(0) 推荐(0)
摘要: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, 阅读全文
posted @ 2019-01-14 08:22 Dup4 阅读(247) 评论(0) 推荐(0)
摘要: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" 阅读全文
posted @ 2019-01-12 08:53 Dup4 阅读(170) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-01-06 08:52 Dup4 阅读(296) 评论(0) 推荐(1)
摘要: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 ( 阅读全文
posted @ 2019-01-05 09:12 Dup4 阅读(307) 评论(0) 推荐(0)
摘要: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% 阅读全文
posted @ 2018-12-31 07:22 Dup4 阅读(224) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-12-29 12:24 Dup4 阅读(231) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-12-24 06:03 Dup4 阅读(208) 评论(0) 推荐(0)
摘要: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( 阅读全文
posted @ 2018-12-20 08:42 Dup4 阅读(254) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-12-12 13:35 Dup4 阅读(204) 评论(0) 推荐(0)
摘要: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", & 阅读全文
posted @ 2018-12-05 07:41 Dup4 阅读(397) 评论(0) 推荐(1)
摘要: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 阅读全文
posted @ 2018-12-02 08:04 Dup4 阅读(174) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-11-30 12:35 Dup4 阅读(194) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-11-28 19:57 Dup4 阅读(204) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-11-28 19:43 Dup4 阅读(163) 评论(0) 推荐(0)