Pagini recente » Borderou de evaluare (job #60282) | Borderou de evaluare (job #993713) | Borderou de evaluare (job #2315863)
Borderou de evaluare (job #2315863)
Raport evaluator
Compilare:
main.cpp:2:294: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream f("dicsi.in");ofstream g("dicsi.out");auto $=[](){int x;f>>x;return x;};int m=1,E[100002];int Eratostene=([](int N){for(int i=1;i<=N;E[i++]=1);for(int i=1;i<=N;i++)for(int j=2*i;j<=N;E[j]+=(E[i]==E[j]),j+=i);for(int i=1;i<=N;m=max(m,E[i++]));return 0;})($());main(){g<<m<<'\n';for(int i=1;E[i]!=0;g<<E[i++]<<' ');}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 20 |
2 | 2ms | 131kb | OK | 20 |
3 | 2ms | 131kb | OK | 20 |
4 | 19ms | 524kb | OK | 20 |
5 | 29ms | 786kb | OK | 20 |
Punctaj total | 100 |