結果
問題 | No.167 N^M mod 10 |
ユーザー | testestest |
提出日時 | 2015-11-12 22:33:16 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 127 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 24,084 KB |
実行使用メモリ | 4,484 KB |
最終ジャッジ日時 | 2023-10-11 15:45:06 |
合計ジャッジ時間 | 1,744 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 0 ms
4,348 KB |
testcase_02 | AC | 17 ms
4,348 KB |
testcase_03 | AC | 17 ms
4,356 KB |
testcase_04 | AC | 17 ms
4,352 KB |
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 | 0 ms
4,352 KB |
testcase_14 | AC | 1 ms
4,348 KB |
testcase_15 | AC | 0 ms
4,348 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 9 ms
4,348 KB |
testcase_27 | AC | 17 ms
4,348 KB |
testcase_28 | AC | 17 ms
4,352 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int] a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^ main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^~~~ main.c: In function ‘main’: main.c:1:9: warning: type of ‘f’ defaults to ‘int’ [-Wimplicit-int] main.c:1:22: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^~~~ main.c:1:76: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);} ^~~~~~ main.c:1:76: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:1:76: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +#include <stdio.h> a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);}
ソースコード
a[],c,s;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=1-f:f--;s=!printf("%d",(f=pow(a[1]%10,*a%4+(s-1||*a)*4))%10);}