結果
| 問題 |
No.251 大きな桁の復習問題(1)
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-03-20 06:27:30 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 594 ms |
| コンパイル使用メモリ | 20,736 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-17 17:31:15 |
| 合計ジャッジ時間 | 2,786 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
コンパイルメッセージ
main.c:1:22: warning: data definition has no type or storage class
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^
main.c:1:22: warning: type defaults to ‘int’ in declaration of ‘f’ [-Wimplicit-int]
main.c:1:24: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^
main.c:1:26: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^
main.c:1:28: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^
main.c:1:30: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^~~~
main.c: In function ‘main’:
main.c:1:30: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:43: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
1 | long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
| ^~~~
main.c:1:144
ソースコード
long t=1,p=129402307;f,b,c,s;main(a){for(;read(0,&c,1);c-10?b=(b*10+c-48)%(p-f),s+=b*f:!f++?a=b,b=0:0);for(c=27;c--;)t=t*t%p*(b>>c&1?a:1)%p;c=!printf("%d",a?t:!s);}
testestest