結果
問題 | No.2186 冪乗の片側極限 |
ユーザー | ぷら |
提出日時 | 2023-01-13 22:06:56 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 2,239 ms |
コンパイル使用メモリ | 199,028 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 17:38:20 |
合計ジャッジ時間 | 3,835 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 56 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b; long long ans = 1; if(a == 0) ans = 0; for(int i = 0; i < b; i++) ans *= a; cout << ans << endl; }