結果

問題 No.1229 ラグビーの得点パターン
ユーザー 👑 tamatotamato
提出日時 2020-09-18 21:21:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 1,754 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 76,496 KB
最終ジャッジ日時 2023-09-04 09:17:05
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
75,940 KB
testcase_01 AC 82 ms
75,944 KB
testcase_02 AC 82 ms
76,208 KB
testcase_03 AC 80 ms
75,992 KB
testcase_04 AC 82 ms
75,892 KB
testcase_05 AC 81 ms
76,176 KB
testcase_06 AC 80 ms
76,496 KB
testcase_07 AC 82 ms
76,208 KB
testcase_08 AC 81 ms
76,200 KB
testcase_09 AC 81 ms
76,360 KB
testcase_10 AC 81 ms
76,100 KB
testcase_11 AC 80 ms
76,316 KB
testcase_12 AC 80 ms
76,100 KB
testcase_13 AC 80 ms
76,184 KB
testcase_14 AC 80 ms
76,116 KB
testcase_15 AC 81 ms
76,208 KB
testcase_16 AC 78 ms
76,180 KB
testcase_17 AC 81 ms
76,188 KB
testcase_18 AC 81 ms
75,988 KB
testcase_19 AC 82 ms
75,948 KB
testcase_20 AC 81 ms
76,096 KB
testcase_21 AC 79 ms
76,096 KB
testcase_22 AC 79 ms
75,952 KB
testcase_23 AC 80 ms
76,356 KB
testcase_24 AC 82 ms
76,096 KB
testcase_25 AC 81 ms
76,176 KB
testcase_26 AC 82 ms
76,072 KB
testcase_27 AC 81 ms
75,984 KB
testcase_28 AC 82 ms
75,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    ans = 0
    for x in range(100):
        for y in range(x+1):
            for z in range(100):
                if 5*x + 2*y + 3*z == N:
                    ans += 1
    print(ans)


if __name__ == '__main__':
    main()
0