随笔分类 - 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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,
阅读全文
摘要:传送门 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,
阅读全文
摘要:传送门 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
阅读全文
摘要:传送门 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=
阅读全文
摘要:传送门 A - Duplex Printing #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n; scanf("%
阅读全文
摘要:传送门 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",
阅读全文