摘要:
关闭同步流 ios::sync_with_stdio(false); 快读 inline int read() { int ans = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-')f = -1 阅读全文
posted @ 2025-05-31 18:54
Guaninf
阅读(15)
评论(0)
推荐(0)
摘要:
Tips 输入时 , 整行读入并根据字符个数判断 输出时 , 每个测试之间两个空格 当用while(getline(cin,s)和cin>>tmp的时候 , 一个神奇的地方是 : cin读取时会留下回车 因此用cin读取tmp后 , tmp后的回车保留 , 进而导致getline读取到空回车 , 然 阅读全文
posted @ 2025-05-31 09:34
Guaninf
阅读(7)
评论(0)
推荐(0)
摘要:
注意格式 代码 #include<bits/stdc++.h> using namespace std; inline int read() { int ans = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (c 阅读全文
posted @ 2025-05-31 02:46
Guaninf
阅读(3)
评论(0)
推荐(0)
摘要:
狂wa 气死人的题 代码 #include<bits/stdc++.h> using namespace std; inline int read() { int ans = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { 阅读全文
posted @ 2025-05-31 02:31
Guaninf
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号