結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-15 23:16:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 536 ms |
コンパイル使用メモリ | 67,068 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-06-27 20:40:16 |
合計ジャッジ時間 | 4,152 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | -- * 30 |
ソースコード
#include <iostream> #include <math.h> using namespace std; double p( double x,double y){ double c=x; double i; for (i=0;i<y-1;i++){ c*=x; } return c; } int main() { double a,n,c; double b; double m=10000000; cin>>a>>n; b=p(a,n); c=fmod(b,m); printf("%.0lf\n%.0lf\n",m,c); return 0; }