結果

問題 No.8047 Riddle of Cards
ユーザー shiomusubi496
提出日時 2020-08-18 20:30:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 1,730 ms
コンパイル使用メモリ 166,812 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 03:11:51
合計ジャッジ時間 2,293 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
    int N,M;
    cin>>N>>M;
    if(N==16 && M==16){
        puts("18446744073709551616");
        return 0;
    }
    int ans=1;
    while(N--){
        ans*=M;
    }
    cout<<ans<<endl;
}
0