結果
問題 |
No.557 点対称
|
ユーザー |
![]() |
提出日時 | 2017-08-11 23:45:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 23,424 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-12 22:09:07 |
合計ジャッジ時間 | 3,612 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 28 |
ソースコード
#include<cstdio> using ll=long long; #define MOD 1000000007 int main(void) { ll n; while(scanf("%lld", &n)==1) { ll ans=1; if(n&1) ans=3; for(ll i=n/2;i>0;i--) { if(i==1) ans=(ans*4)%MOD; else ans=(ans*5)%MOD; } if(n==1) ans=2; printf("%lld\n", ans); } return 0; }