結果

問題 No.8047 Riddle of Cards
ユーザー 259_Momone259_Momone
提出日時 2019-04-01 22:46:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 1,635 ms
コンパイル使用メモリ 167,124 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 03:42:52
合計ジャッジ時間 2,110 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    unsigned long N, M;
    cin >> N >> M;
    if(N == M && M == 16)puts("18446744073709551616");
    else{
        unsigned long ans{1};
        while(N--)ans *= M;
        cout << ans << endl;
    }
    return 0;
}
0