結果

問題 No.167 N^M mod 10
ユーザー Ytz_Ichi
提出日時 2018-07-19 00:33:32
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 27,776 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-17 17:11:22
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 4 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
    long long int n,m,a;
    scanf("%lld\n%lld",&n,&m);
    n=n%10;m=m%10;
    a=n^m;
    if(a>9){
        a=a%10;
    }
    printf("%d\n",a);
    return 0;
}
0