結果

問題 No.906 Y字グラフ
ユーザー roarisroaris
提出日時 2020-12-02 19:10:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 1,145 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 71,616 KB
最終ジャッジ日時 2023-10-11 11:52:09
合計ジャッジ時間 5,338 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,268 KB
testcase_01 AC 75 ms
71,520 KB
testcase_02 AC 75 ms
71,388 KB
testcase_03 AC 73 ms
71,512 KB
testcase_04 AC 73 ms
71,128 KB
testcase_05 AC 73 ms
71,344 KB
testcase_06 AC 73 ms
71,568 KB
testcase_07 AC 71 ms
71,248 KB
testcase_08 AC 72 ms
71,504 KB
testcase_09 AC 73 ms
71,236 KB
testcase_10 AC 73 ms
71,236 KB
testcase_11 AC 73 ms
71,408 KB
testcase_12 AC 73 ms
71,336 KB
testcase_13 AC 73 ms
71,128 KB
testcase_14 AC 74 ms
71,432 KB
testcase_15 AC 72 ms
71,384 KB
testcase_16 AC 73 ms
71,128 KB
testcase_17 AC 73 ms
71,268 KB
testcase_18 AC 74 ms
71,296 KB
testcase_19 AC 74 ms
71,264 KB
testcase_20 AC 74 ms
71,328 KB
testcase_21 AC 74 ms
71,444 KB
testcase_22 AC 74 ms
71,616 KB
testcase_23 AC 72 ms
71,336 KB
testcase_24 AC 72 ms
71,340 KB
testcase_25 AC 71 ms
71,324 KB
testcase_26 AC 73 ms
71,384 KB
testcase_27 AC 71 ms
71,284 KB
testcase_28 AC 72 ms
71,568 KB
testcase_29 AC 72 ms
71,336 KB
testcase_30 AC 72 ms
71,468 KB
testcase_31 AC 72 ms
71,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(n):
    return ((n**2+3)//12+(n+2)//2)%MOD
    
N = int(input())
MOD = 10**9+7
print(f(N-4))
0