Pagini recente » Borderou de evaluare (job #1705036) | Borderou de evaluare (job #506414) | Borderou de evaluare (job #350881) | Borderou de evaluare (job #637805) | Borderou de evaluare (job #1037592)
Borderou de evaluare (job #1037592)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d %d",&n,&p); fclose(stdin);
^
user.cpp:9:66: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
if(n%3==0)printf("%d",(((((n/3)%p)*((n+1)%p))%p)*((n-1)%p))%p);
^
user.cpp:10:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
if(n%3==2)printf("%d",(((((n)%p)*(((n+1)/3)%p))%p)*((n-1)%p))%p);
^
user.cpp:11:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
if(n%3==1)printf("%d",(((((n)%p)*((n+1)%p))%p)*(((n-1)/3)%p))%p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 236kb | OK | 10 |
2 | 0ms | 236kb | OK | 10 |
3 | 0ms | 236kb | OK | 10 |
4 | 0ms | 236kb | OK | 10 |
5 | 0ms | 240kb | OK | 10 |
6 | 0ms | 236kb | OK | 10 |
7 | 0ms | 240kb | OK | 10 |
8 | 0ms | 236kb | OK | 10 |
9 | 0ms | 236kb | OK | 10 |
10 | 0ms | 240kb | OK | 10 |
Punctaj total | 100 |