摘要:
A link 判断一下少的那个人加上剩下的所有票是否会超过另一个人,如果超过,不确定,否则目前票多的必胜。 神奇的代码 #include<bits/stdc++.h> using namespace std; signed main(){ int n,a,b; cin >> n >> a >> b; 阅读全文
摘要:
A link 循环判断,除了最后两个点以外,有连续\(2\)个甜的就不能吃完。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; string s[105]; signed main(){ cin >> n; for(int i = 阅读全文
摘要:
A link 判断即可。。。 点击查看代码 #include<bits/stdc++.h> using namespace std; int r,g,b; string c; signed main(){ cin >> r >> g >> b >> c; if(c == "Red") cout << 阅读全文
摘要:
A link 先输出前\(k\)个,再输出\(x\),最后输出后面的。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,k,x; signed main(){ cin >> n >> k >> x; for(int i = 1;i 阅读全文