結果
| 問題 |
No.557 点対称
|
| コンテスト | |
| ユーザー |
ttttan
|
| 提出日時 | 2019-01-08 15:39:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| コンパイル時間 | 1,500 ms |
| コンパイル使用メモリ | 159,104 KB |
| 実行使用メモリ | 16,704 KB |
| 最終ジャッジ日時 | 2024-11-24 00:42:40 |
| 合計ジャッジ時間 | 41,868 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 TLE * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod=1000000007;
int main(){
ll n;cin>>n;
if(n==1){
cout<<2<<endl;
return 0;
}
ll ans=1;
for(ll i=0;i<n/2;i++){
if(i==0)ans*=4;
else ans*=5;
ans%=mod;
}
if(n%2==1)ans*=3;
ans%=mod;
cout<<ans<<endl;
}
ttttan