結果

問題 No.557 点対称
ユーザー Lapinpon
提出日時 2017-08-12 00:18:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 292 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 55,044 KB
実行使用メモリ 13,636 KB
最終ジャッジ日時 2024-10-12 22:31:04
合計ジャッジ時間 3,879 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	
	long long n,result=1;
	cin>>n;
	if(n==1){
		cout<<"2"<<endl;
		return 0;
	}
	
	if(n%2) result*=3;
	n/=2;
	for(int i=1;i<n;i++){
		result*=5;
		result%=1000000007;
	}
	result*=4;
	result%=1000000007;
	
	cout<<result<<endl;
	return 0;
}		
0