結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
👑 |
提出日時 | 2022-07-18 12:41:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 951 ms |
コンパイル使用メモリ | 65,536 KB |
最終ジャッジ日時 | 2025-01-30 10:48:05 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 3 |
other | TLE * 30 |
ソースコード
#include <iostream> using namespace std; int main(){ long long a,n;cin>>a>>n; long long nw = 1; while(n || nw<10000000){ nw *= a; } if(!n){ cout << 10000000 << endl; cout << nw << endl; }else{ cout << nw << endl; cout << 0 << endl; } }