結果

問題 No.72 そろばん Med
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-01 22:30:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 75 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 82,388 KB
実行使用メモリ 53,420 KB
最終ジャッジ日時 2024-04-18 22:41:54
合計ジャッジ時間 2,125 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,624 KB
testcase_01 AC 35 ms
52,532 KB
testcase_02 AC 36 ms
52,908 KB
testcase_03 AC 34 ms
52,444 KB
testcase_04 AC 35 ms
52,424 KB
testcase_05 AC 32 ms
51,952 KB
testcase_06 AC 33 ms
52,972 KB
testcase_07 AC 32 ms
51,836 KB
testcase_08 AC 31 ms
52,316 KB
testcase_09 AC 37 ms
53,420 KB
testcase_10 AC 37 ms
52,048 KB
testcase_11 AC 37 ms
52,432 KB
testcase_12 AC 35 ms
51,796 KB
testcase_13 AC 35 ms
53,188 KB
testcase_14 AC 34 ms
52,328 KB
testcase_15 AC 34 ms
51,500 KB
testcase_16 AC 33 ms
51,884 KB
testcase_17 AC 35 ms
52,076 KB
testcase_18 AC 32 ms
53,228 KB
testcase_19 AC 33 ms
52,136 KB
testcase_20 AC 34 ms
52,488 KB
testcase_21 AC 33 ms
52,228 KB
testcase_22 AC 36 ms
52,824 KB
testcase_23 AC 35 ms
52,696 KB
testcase_24 AC 32 ms
52,724 KB
testcase_25 AC 33 ms
52,424 KB
testcase_26 AC 35 ms
52,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
mod = 10**6+7
x = n//2+1
y = (n+1)//2+1
print((x*y-1)%mod)
0