摘要:
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 阅读全文