| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 19995 | 桑迪 | 关灯 | C++ | Runtime Error | 0 | 0 MS | 92 KB | 255 | 2021-05-27 21:08:49 |
#include<bits/stdc++.h> using namespace std; int n,ans; bool l[1000000001]; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=i;j<=n;j+=i){ l[j]=!l[j]; } } for(int i=1;i<=n;i++){ if(l[i]) ans+=i; } cout<<ans; return 0; }