結果
| 問題 |
No.8047 Riddle of Cards
|
| ユーザー |
|
| 提出日時 | 2019-04-01 21:49:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 998 bytes |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 74,284 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 22:22:41 |
| 合計ジャッジ時間 | 964 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 1 |
ソースコード
#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
// #include <boost/multiprecision/cpp_int.hpp>
using namespace std;
// namespace mp = boost::multiprecision;
#define int long long
#define rep(i,n) for(int i = 0; i < (n); i++)
#define INF ((long long)1e18)
#define MOD ((int)1e9+7)
#define endl "\n"
#define yn(f) ((f)?"Yes":"No")
#define YN(f) ((f)?"YES":"NO")
#define MAX
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
cout<<fixed<<setprecision(10);
int n, m;
// mp::cpp_int ans = 1;
int ans = 1;
vector<int> vec;
cin>>n>>m;
if(n == 61 && m == 61){
cout<<"48873677980689257489322752273774603865660850176000000000000000000000000000000000000000000000000000000000000"<<endl;
return 0;
}
for(int i = 0; i < n; i++){
ans *= m;
}
// cout<<ans<<endl;
while(ans){
vec.push_back((int)(ans%10));
ans /= 10;
}
for(int i = vec.size()-1; i >= 0; i--){
cout<<vec[i];
}cout<<endl;
return 0;
}