結果

問題 No.167 N^M mod 10
ユーザー testestesttestestest
提出日時 2015-08-14 23:39:29
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 23,740 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-25 11:51:46
合計ジャッジ時間 1,309 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
4,380 KB
testcase_09 WA -
testcase_10 AC 1 ms
4,376 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
4,376 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 0 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 1 ms
4,380 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 0 ms
4,380 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:14: warning: data definition has no type or storage class
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
              ^
main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
                ^~~~
main.c: In function ‘main’:
main.c:1:16: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:27: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
                           ^~~~~~
main.c:1:27: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:27: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+#include <stdio.h>
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
                           ^~~~~~
main.c:1:42: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
                                          ^~~
main.c:1:42: warning: incompatible implicit declaration of built-in function ‘pow’
main.c:1:42: note: include ‘<math.h>’ or provide a declaration of ‘pow’
+#include <math.h>
 char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
                                          ^~~
main.c:1:48: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
 char

ソースコード

diff #

char s[9999];a;main(b){a=!printf("%d",(a=pow(s[strlen(gets(s))-1]-48,(a=atoi((b=strlen(gets(s))-1)?s+b-1:s))%4+(b||a)*4))%10);}
0