2020年6月5日
摘要: #include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define RANGE(i,a) for(int i=0;i<(a);++i) #defi 阅读全文
posted @ 2020-06-05 12:52 Ricochet! 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define SWAP(a,b) auto c=a;a=b;b=c; int main() 阅读全文
posted @ 2020-06-05 12:37 Ricochet! 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define SWAP(a,b) auto c=a;a=b;b=c; int main() 阅读全文
posted @ 2020-06-05 12:12 Ricochet! 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { int n = 0, m; while(cin >> n){ m = n + 1; n % 2 == 0? n /= 2: m /= 2; cout << m * n << endl << e 阅读全文
posted @ 2020-06-05 11:39 Ricochet! 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 3 int main(){ 4 int a, b; 5 while(scanf("%d%d",&a,&b)!=EOF) 6 printf("%d\n",a+b); 7 return 0; 8 } 注意要求,其实是有多个输入的,需要以此输出结果。 阅读全文
posted @ 2020-06-05 11:34 Ricochet! 阅读(185) 评论(0) 推荐(0) 编辑