結果
問題 | No.16 累乗の加算 |
ユーザー |
![]() |
提出日時 | 2015-08-15 11:37:53 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 134 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 24,008 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-25 12:02:22 |
合計ジャッジ時間 | 898 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 1 ms
4,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^ main.c:1:13: warning: return type defaults to ‘int’ [-Wimplicit-int] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^ main.c:1:60: warning: return type defaults to ‘int’ [-Wimplicit-int] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^~~~ main.c: In function ‘main’: main.c:1:60: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:74: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);} ^~~~ main.c:1:79: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);}
ソースコード
c,q=1e6+3,s;m(long x){return x?(x%2?c:1)*(x=m(x/2))*x%q:1;}main(t){for(c=atoi(gets(&c));~scanf("%d",&t);s+=m(t));c=!printf("%d",s%q);}