結果
| 問題 |
No.167 N^M mod 10
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-02-16 03:39:22 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 110 bytes |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 07:15:40 |
| 合計ジャッジ時間 | 1,392 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 6 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:6: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^
main.c:1:8: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^~~~
main.c: In function ‘main’:
main.c:1:8: warning: type of ‘f’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^~~~
main.c:1:68: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^~~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
+++ |+#include <stdio.h>
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
main.c:1:79: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
1 | a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
| ^~~
main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘pow
ソースコード
a[2],c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48:f--;c=!putchar((f=pow(a[1]%c,*a%4+!!*a*4))%c+48);}
testestest