結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-15 22:52:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 66,688 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-27 19:54:34 |
合計ジャッジ時間 | 4,243 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 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("%lf\n%lf\n",m,c); return 0; }