Pagini recente » Borderou de evaluare (job #2841238) | Borderou de evaluare (job #370657) | Borderou de evaluare (job #3292061) | Borderou de evaluare (job #146356) | Borderou de evaluare (job #2535617)
Borderou de evaluare (job #2535617)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:2:132: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
int t,n,m,i,j,s[201][201],r[201][201];int main(){freopen("stirling.in","r",stdin),freopen("stirling.out","w",stdout),scanf("%d",&t);for(i=1;i<201;i++)for(j=1;j<201;j++)if(i>j)s[i][j]=(s[i-1][j-1]-(i-1)*s[i-1][j])%98999,r[i][j]=(r[i-1][j-1]+j*r[i-1][j])%98999;else if(i==j)s[i][j]=r[i][j]=1;while(t--){scanf("%d%d%d",&i,&n,&m),printf("%d\n",i==1?s[n][m]:r[n][m]);}}
^
main.cpp:2:132: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:2:132: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:2:362: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int t,n,m,i,j,s[201][201],r[201][201];int main(){freopen("stirling.in","r",stdin),freopen("stirling.out","w",stdout),scanf("%d",&t);for(i=1;i<201;i++)for(j=1;j<201;j++)if(i>j)s[i][j]=(s[i-1][j-1]-(i-1)*s[i-1][j])%98999,r[i][j]=(r[i-1][j-1]+j*r[i-1][j])%98999;else if(i==j)s[i][j]=r[i][j]=1;while(t--){scanf("%d%d%d",&i,&n,&m),printf("%d\n",i==1?s[n][m]:r[n][m]);}}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 393kb | OK | 10 |
2 | 3ms | 393kb | OK | 10 |
3 | 3ms | 393kb | OK | 10 |
4 | 3ms | 393kb | OK | 10 |
5 | 3ms | 393kb | OK | 10 |
6 | 4ms | 393kb | OK | 10 |
7 | 4ms | 393kb | OK | 10 |
8 | 3ms | 393kb | OK | 10 |
9 | 3ms | 393kb | OK | 10 |
10 | 4ms | 393kb | OK | 10 |
Punctaj total | 100 |