提交记录 27507
用户 |
题目 |
状态 |
得分 |
用时 |
内存 |
语言 |
代码长度 |
ppip |
test. 自定义测试 |
Accepted |
100 |
21.494 ms |
79996 KB |
C++ |
607 B |
提交时间 |
评测时间 |
2024-12-17 16:24:56 |
2024-12-17 16:24:58 |
#include <bits/stdc++.h>
using namespace std;
constexpr int Spp{1<<20};
char buf[Spp],*p1,*p2;
#define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,Spp,stdin),p1==p2)?EOF:*p1++)
template <typename T>
void read(T &x) {
char c;int f{1};
do x=(c=getchar())^48;
while (!isdigit(c)&&c!='-');
if (x==29) f=-1,x=0;
while (isdigit(c=getchar()))
x=(x*10)+(c^48);
x*=f;
}
template <typename T,typename ...Args>
void read(T& x,Args&... args) {read(x);read(args...);}
constexpr int N(1e7);
int a[N];
int main() {
iota(a,a+N,1);
deque<int> v(a,a+N);
int w{0};
for (auto k:v) w^=k;
cout<<w<<endl;
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 21.494 ms | 78 MB + 124 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-04-20 03:40:47 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠