摘要:
#include #include int main() { int n; scanf("%d", &n); // 之前一直用c++过不了,因为会有空格的关系,所以改用了scanf; while (n--) { char s[110]; int np = 0, lp = 0, nt = 0, lt = 0, other = 0; ... 阅读全文
摘要:
// 这道题运用的小技巧很多#include #include #include using namespace std; bool cmp (char a, char b) { // 用来递减排序 return a > b; } int main() { string num; cin >> num; num.insert(0, 4 - num.siz... 阅读全文
摘要:
//自己写的很长,这是参考的网上以为大牛的;#include #include using namespace std; int main() { int n, y, wina = 0, winb = 0, a[3] = {0}, b[3] = {0};; char s, t; cin >> n; y = n; while (n--) { ... 阅读全文
摘要:
#include #include using namespace std; int main() { int m, n, i = 2, cnt = 0; bool isnum; cin >> m >> n; while (cnt != n) { isnum = true; for (int j = 2; j = m && cn... 阅读全文