結果
問題 |
No.2186 冪乗の片側極限
|
ユーザー |
![]() |
提出日時 | 2023-01-13 21:52:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 2,561 ms |
コンパイル使用メモリ | 244,780 KB |
最終ジャッジ日時 | 2025-02-10 02:28:54 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 56 |
ソースコード
#include <bits/extc++.h> using namespace std; using ll = long long; #define REP(i,n) for(int i=0;i<int(n);i++) #define FOR(i,a,b) for(ll i=a;i<=ll(b);i++) #define ALL(x) x.begin(),x.end() #define INF INT_MAX #define INFL LLONG_MAX signed main() { ll a, b; cin >> a >> b; ll ans = 1; REP(i, b) ans *= a; if(a==0) cout << 0; else cout << ans; return 0; }