結果

問題 No.167 N^M mod 10
ユーザー Mcpu3
提出日時 2018-09-05 14:23:44
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 29,824 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-14 05:40:24
合計ジャッジ時間 1,328 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
#include <math.h>

int main(void)
{
    char n[10002],m[10002];
    scanf("%s%s",n,m);
    printf("%d",(long)pow(n[strlen(n)-1]-'0',m[strlen(m)-1]-'0')%10);
    return 0;
}
0