結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-29 18:28:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 364 bytes |
コンパイル時間 | 2,116 ms |
コンパイル使用メモリ | 192,372 KB |
最終ジャッジ日時 | 2025-01-30 14:54:55 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 30 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, n; cin >> a >> n; long long p = 1; for (long long i = 0; i < n; i++) { p *= a; if (p >= 10000000LL) { cout << 0 << endl; return 0; } } cout << p << endl; return 0; }