結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
sujinbemani_79c
|
| 提出日時 | 2015-03-19 23:30:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 482 ms |
| コンパイル使用メモリ | 67,452 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 23:18:30 |
| 合計ジャッジ時間 | 1,405 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 12 |
ソースコード
#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
int main(){
int N,M;
cin>>N>>M;
int ans=1;
for(int i=0;i<M;i++)ans=ans*N%10;
printf("%d\n",ans);
return 0;
}
sujinbemani_79c