Pagini recente » Borderou de evaluare (job #751983) | Borderou de evaluare (job #2918020) | Borderou de evaluare (job #2208619) | Borderou de evaluare (job #2767055) | Borderou de evaluare (job #2343622)
Borderou de evaluare (job #2343622)
Raport evaluator
Compilare:
main.cpp:2:90: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream f("patrat.in");ofstream g("patrat.out");map<int,int> M;main(){for(int i=1;i<=141;i++)for(int j=i+1;i*i+j*j<=20000;j++)M[i*i+j*j]++;int x,y;f>>x>>y;for(int i=x;i<=y;i++)if(M[i]>=2)g<<i<<'\n';if(!g.tellp())g<<0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 393kb | OK | 10 |
2 | 5ms | 393kb | OK | 10 |
3 | 5ms | 393kb | OK | 10 |
4 | 5ms | 393kb | OK | 10 |
5 | 6ms | 393kb | OK | 10 |
6 | 5ms | 393kb | OK | 10 |
7 | 5ms | 393kb | OK | 10 |
8 | 6ms | 393kb | OK | 10 |
9 | 9ms | 786kb | OK | 10 |
10 | 13ms | 1048kb | OK | 10 |
Punctaj total | 100 |