ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#213194 | #2348. Life | bwahoji | Compile Error | / | / | C++11 | 712b | 2024-11-09 22:53:30 | 2024-11-09 23:30:32 |
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int l, q;
cin >> l >> q;
while (q--) {
int x;
cin >> x;
for (int i = 0; i <= l; i++) {
for (int j = 0; j <= l; j++) {
if (abs(x - i * i * i - j * j * j) <= l * l * l) {
int ii = cbrt(x - i * i * i - j * j * j);
if (ii * ii * ii == (x - i * i * i - j * j * j)) {
cout << i << " " << j << " " << ii << "\n";
goto fin;
}
}
}
}
fin:;
}
return 0;
}
详细
answer.code:7:1: error: stray '\302' in program ios::sync_with_stdio(0); \x0d ^ answer.code:7:1: error: stray '\240' in program answer.code:9:1: error: stray '\302' in program cin.tie(0); \x0d ^ answer.code:9:1: error: stray '\240' in program answer.code:11:1: error: stray '\302' in program int l, q; \x0d ^ answer.code:11:1: error: stray '\240' in program answer.code:13:1: error: stray '\302' in program cin >> l >> q; \x0d ^ answer.code:13:1: error: stray '\240' in program answer.code:15...