結果
| 問題 | 
                            No.8047 Riddle of Cards
                             | 
                    
| コンテスト | |
| ユーザー | 
                             jupiro_jupi
                         | 
                    
| 提出日時 | 2019-04-01 21:38:24 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 915 bytes | 
| コンパイル時間 | 855 ms | 
| コンパイル使用メモリ | 88,404 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-26 21:46:38 | 
| 合計ジャッジ時間 | 1,077 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 4 WA * 3 | 
ソースコード
#include <cstdio>
#include <iostream>
#include <string>
#include <sstream>
#include <stack>
#include <algorithm>
#include <cmath>
#include <queue>
#include <map>
#include <set>
#include <cstdlib>
#include <bitset>
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
char ToUpper(char cX) { return toupper(cX); }
char Tolower(char cX) { return tolower(cX); }
const long long INF = 1LL << 60;
const long long MOD = 1000000007;
using namespace std;
typedef unsigned long long ull;
typedef  long long ll;
vector<ll> dp;
ll power(ll x, ll n, ll p = 1000000007) {
	if (n == 0) {
		return 1;
	}
	if (n % 2 == 0) {
		return power(x * x % p, n / 2) % p;
	}
	else {
		return x * power(x, n - 1) % p;
	}
}
int main()
{
	ll n, m;
	cin >> n >> m;
	cout << power(m, n, INF);
	return 0;
}
            
            
            
        
            
jupiro_jupi