結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2018-07-19 00:36:47 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 212 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 29,696 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-17 17:22:05 |
合計ジャッジ時間 | 1,050 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 16 |
ソースコード
#include <stdio.h> #include <math.h> int main(){ long long int n,m,a; scanf("%lld\n%lld",&n,&m); n=n%10;m=m%10; a=pow(n,m); if(a>9){ a=a%10; } printf("%d\n",a); return 0; }