結果

問題 No.72 そろばん Med
ユーザー 184184
提出日時 2014-11-18 23:41:10
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 26,040 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-30 21:41:17
合計ジャッジ時間 1,216 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 WA -
testcase_14 AC 1 ms
4,380 KB
testcase_15 WA -
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 1 ms
4,376 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 WA -
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 2 ms
4,380 KB
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstring>

using namespace std;

//namaega184



int main(){
	
	long long n;scanf("%lld",&n);
	printf("%lld\n",((n/2)%1000007*((n+1)%1000007/2+1)+(n+1)/2)%1000007);

	
	
	
	
	
	return 0;
}
0