QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#760998 | #9629. 小 C 的神秘图形 | xtmouse | Compile Error | / | / | C++14 | 464b | 2024-11-18 20:33:23 | 2024-11-18 20:33:23 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
int n;
cin >> n;
string x, y;
cin >> x >> y;
ranges::reverse(x), ranges::reverse(y);
while(true){
if((x.back() == '1') or (y.back() == '1')) {
if(n == 1) {
cout << 1 << "\n";
return 0;
} else {
x.pop_back(), y.pop_back(), n --;
}
}else {
cout << 0 << "\n";
return 0;
}
}
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:12:9: error: ‘ranges’ has not been declared 12 | ranges::reverse(x), ranges::reverse(y); | ^~~~~~ answer.code:12:29: error: ‘ranges’ has not been declared 12 | ranges::reverse(x), ranges::reverse(y); | ^~~~~~