随笔分类 -  atcoder

摘要:传送门 A - ∴ (Therefore) #include <bits/stdc++.h> #define ll long long using namespace std; int main() { int n; scanf("%d", &n), n %= 10; if(n == 2 || n 阅读全文
posted @ 2020-05-18 13:09 zdragon 阅读(443) 评论(0) 推荐(2)
摘要:传送门 A - Registration #include <bits/stdc++.h> #define ll long long using namespace std; char s[15], t[15]; int main() { scanf("%s%s", s, t); bool flag 阅读全文
posted @ 2020-05-10 22:33 zdragon 阅读(326) 评论(4) 推荐(0)
摘要:传送门 A - A?C #include <bits/stdc++.h> #define ll long long using namespace std; char s[5]; int main() { scanf("%s",s); if(s[1] == 'B') s[1] = 'R'; else 阅读全文
posted @ 2020-05-03 21:41 zdragon 阅读(313) 评论(1) 推荐(1)
摘要:传送门 A - We Love Golf #include <bits/stdc++.h> #define ll long long using namespace std; int main() { int k, a, b; scanf("%d%d%d", &k, &a, &b); bool fl 阅读全文
posted @ 2020-05-03 12:37 zdragon 阅读(207) 评论(0) 推荐(1)
摘要:传送门 A - Sheep and Wolves #include <bits/stdc++.h> #define ll long long using namespace std; int main() { int a, b; scanf("%d%d", &a, &b); printf("%s\n 阅读全文
posted @ 2020-04-27 11:16 zdragon 阅读(511) 评论(3) 推荐(2)
摘要:传送门 A - Circle Pond #include <bits/stdc++.h> #define ll long long using namespace std; int main() { int n; scanf("%d", &n); printf("%.6f\n", 2.0 * aco 阅读全文
posted @ 2020-04-20 12:17 zdragon 阅读(514) 评论(5) 推荐(1)
摘要:传送门 A - Lucky 7 #include <bits/stdc++.h> #define ll long long using namespace std; int main() { int n; scanf("%d",&n); bool f=false; while(n) { if(n%1 阅读全文
posted @ 2020-04-12 23:24 zdragon 阅读(671) 评论(0) 推荐(3)
摘要:传送门 A - ABC Swap #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int a,b,c; scanf("%d%d 阅读全文
posted @ 2020-04-05 12:05 zdragon 阅读(333) 评论(0) 推荐(1)
摘要:传送门 A - Coffee #include <bits/stdc++.h> #define ll long long using namespace std; char s[10]; int main() { //freopen("in.txt","r",stdin); scanf("%s",s 阅读全文
posted @ 2020-03-28 22:42 zdragon 阅读(426) 评论(2) 推荐(1)
摘要:传送门 A - The Number of Even Pairs #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n, 阅读全文
posted @ 2020-03-23 12:27 zdragon 阅读(323) 评论(0) 推荐(0)
摘要:传送门 A - Kth Term #include <bits/stdc++.h> #define ll long long using namespace std; int a[32]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 阅读全文
posted @ 2020-03-15 13:22 zdragon 阅读(323) 评论(0) 推荐(1)
摘要:传送门 A - Hitachi String #include <bits/stdc++.h> #define ll long long using namespace std; char s[15]; int main() { //freopen("in.txt","r",stdin); scan 阅读全文
posted @ 2020-03-09 21:27 zdragon 阅读(361) 评论(0) 推荐(1)
摘要:传送门 A - Station and Bus #include <bits/stdc++.h> using namespace std; char s[5]; int main() { //freopen("in.txt","r",stdin); scanf("%s",s); int a=0,b= 阅读全文
posted @ 2020-03-08 12:16 zdragon 阅读(586) 评论(0) 推荐(1)
摘要:传送门 A - Duplex Printing #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n; scanf("% 阅读全文
posted @ 2020-03-02 16:10 zdragon 阅读(555) 评论(2) 推荐(2)
摘要:传送门 A - Beginner #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n,r; scanf("%d%d", 阅读全文
posted @ 2020-02-23 20:16 zdragon 阅读(557) 评论(3) 推荐(0)