QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#692753 | #7512. Almost Prefix Concatenation | afy | TL | 0ms | 0kb | C++20 | 387b | 2024-10-31 14:59:45 | 2024-10-31 14:59:59 |
answer
// #pragma GCC optimize("Ofast", "unroll-loops")
#include <bits/stdc++.h>
using namespace std;
signed main() {
int n = 4E3;
bitset<30> ans;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j += 2) {
for (int k = 1; k <= n; k += 4) {
ans |= i | j | k;
}
}
}
cout << ans.to_ullong() << "\n";
}
詳細信息
Test #1:
score: 0
Time Limit Exceeded
input:
ababaab aba