結果

問題 No.1229 ラグビーの得点パターン
ユーザー mlihua09mlihua09
提出日時 2020-09-18 21:22:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 1,352 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 76,404 KB
最終ジャッジ日時 2023-09-04 09:23:42
合計ジャッジ時間 4,660 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
75,928 KB
testcase_01 AC 79 ms
76,076 KB
testcase_02 AC 79 ms
76,404 KB
testcase_03 AC 79 ms
76,288 KB
testcase_04 AC 79 ms
75,932 KB
testcase_05 AC 90 ms
76,300 KB
testcase_06 AC 79 ms
76,260 KB
testcase_07 AC 83 ms
76,144 KB
testcase_08 AC 79 ms
76,032 KB
testcase_09 AC 78 ms
76,320 KB
testcase_10 AC 79 ms
76,404 KB
testcase_11 AC 79 ms
76,352 KB
testcase_12 AC 78 ms
76,356 KB
testcase_13 AC 82 ms
76,352 KB
testcase_14 AC 77 ms
75,940 KB
testcase_15 AC 77 ms
76,228 KB
testcase_16 AC 77 ms
76,176 KB
testcase_17 AC 79 ms
76,320 KB
testcase_18 AC 78 ms
75,936 KB
testcase_19 AC 76 ms
75,944 KB
testcase_20 AC 79 ms
76,288 KB
testcase_21 AC 77 ms
75,936 KB
testcase_22 AC 77 ms
76,060 KB
testcase_23 AC 78 ms
76,056 KB
testcase_24 AC 78 ms
76,236 KB
testcase_25 AC 76 ms
76,272 KB
testcase_26 AC 76 ms
76,096 KB
testcase_27 AC 78 ms
76,228 KB
testcase_28 AC 76 ms
76,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

ans = 0

for i in range(21):
    for j in range(i + 1):
        
        for k in range(100):
            
            if i * 5 + j * 2 + k * 3 == N:
                ans += 1
                
print(ans)
0