結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-16 14:53:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 66,620 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-28 14:21:37 |
合計ジャッジ時間 | 4,174 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | -- * 30 |
ソースコード
#include <iostream> #include<math.h> using namespace std; int main() { double a,n,ans; double m=10000000; cin>>a>>n; ans=fmod(a,m); for (int i=0;i<n-1;i++){ ans*=a; ans=fmod(ans,m); } printf("%.0f\n%.0f\n",m,ans); return 0; }