Pagini recente » Borderou de evaluare (job #2183894) | Borderou de evaluare (job #840119) | Borderou de evaluare (job #2227112) | Borderou de evaluare (job #208422) | Borderou de evaluare (job #2623919)
Borderou de evaluare (job #2623919)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp:2:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;main(){freopen("oluna.in","r",stdin);freopen("oluna.out","w",stdout);int q;cin>>q;while(q--){long long n;cin>>n;if(n&1)cout<<0<<"\n";else{n/=2;long long x=n/6,y=n%6;cout<<x*x*3+y*x+(y>=3)+(y>=5)<<"\n";}}}
^
main.cpp: In function 'int main()':
main.cpp:2:57: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
using namespace std;main(){freopen("oluna.in","r",stdin);freopen("oluna.out","w",stdout);int q;cin>>q;while(q--){long long n;cin>>n;if(n&1)cout<<0<<"\n";else{n/=2;long long x=n/6,y=n%6;cout<<x*x*3+y*x+(y>=3)+(y>=5)<<"\n";}}}
^
main.cpp:2:89: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
using namespace std;main(){freopen("oluna.in","r",stdin);freopen("oluna.out","w",stdout);int q;cin>>q;while(q--){long long n;cin>>n;if(n&1)cout<<0<<"\n";else{n/=2;long long x=n/6,y=n%6;cout<<x*x*3+y*x+(y>=3)+(y>=5)<<"\n";}}}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 100 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 8ms | 131kb | OK | 10 |
5 | 9ms | 131kb | OK | 10 |
6 | 12ms | 131kb | OK | 10 |
7 | 14ms | 131kb | OK | 10 |
8 | 13ms | 131kb | OK | 10 |
9 | 15ms | 131kb | OK | 10 |
10 | 15ms | 131kb | OK | 10 |
Punctaj total | 100 |