結果
問題 | No.391 CODING WAR |
ユーザー | 👑 testestest |
提出日時 | 2016-07-17 18:56:10 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 21,376 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-15 15:25:15 |
合計ジャッジ時間 | 1,579 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 1 ms
6,816 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 77 ms
6,816 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘P’ [-Wimplicit-int] main.c:1:20: warning: data definition has no type or storage class 1 | P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);} | ^ main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] main.c:1:22: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);} | ^ main.c:1:83: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);} | ^~~~ main.c: In function ‘main’: main.c:1:83: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:95: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);} |
ソースコード
P=1e9+7;long n,s,x;m,i;long pom(int a,int i){x=i?pom(1L*a*a%P,i/2)*(i%2?a:1)%P:1;}main(t){for(scanf("%ld%d",&n,&m);i<m;)s+=(1-i%2*2)*(i?t=t*pom(i,P-2)%P*(m-i+1)%P:1)*pom(m-i++,n%~-P)%P+P;s=!printf("%d",s%P);}