結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-02-16 03:44:44 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 1,000 ms |
| コード長 | 123 bytes |
| 記録 | |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 29,892 KB |
| 最終ジャッジ日時 | 2026-02-23 20:36:40 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[2],s,c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=!f:f--;c=!putchar((f=pow(a[1]%c,*a%4+(s-1||*a)*4))%c+48);}
| ^
main.c: In function ‘main’:
main.c:1:87: warning: incompatible implicit declaration of built-in function ‘pow’ [-Wbuiltin-declaration-mismatch]
1 | a[2],s,c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=!f:f--;c=!putchar((f=pow(a[1]%c,*a%4+(s-1||*a)*4))%c+48);}
| ^~~
main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
+++ |+#include <math.h>
1 | a[2],s,c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=!f:f--;c=!putchar((f=pow(a[1]%c,*a%4+(s-1||*a)*4))%c+48);}
ソースコード
a[2],s,c;main(f){for(;read(0,&c,1);)c-10?a[f]=a[f]%10*10+c-48,s+=!f:f--;c=!putchar((f=pow(a[1]%c,*a%4+(s-1||*a)*4))%c+48);}
testestest