結果
| 問題 | 
                            No.2186 冪乗の片側極限
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-01-13 22:28:18 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 327 bytes | 
| コンパイル時間 | 4,422 ms | 
| コンパイル使用メモリ | 251,308 KB | 
| 最終ジャッジ日時 | 2025-02-10 02:48:17 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 56 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/all>
using namespace atcoder;
using ll = long long;
ll a,b;
void solve(){
	ll ans = 1;
	for(int i = 0;i<b;i++){
		ans *= a;
	}
	if(a==0&&b==0)ans = 0;
	cout<<ans<<endl;
}
signed main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	cin >> a >> b;
	solve();
}