結果

問題 No.1229 ラグビーの得点パターン
ユーザー kfieldkfield
提出日時 2020-10-25 23:48:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 86,820 KB
実行使用メモリ 76,196 KB
最終ジャッジ日時 2023-09-29 02:22:42
合計ジャッジ時間 3,942 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 76 ms
71,396 KB
testcase_02 AC 82 ms
75,904 KB
testcase_03 AC 86 ms
76,108 KB
testcase_04 AC 74 ms
71,072 KB
testcase_05 AC 74 ms
71,076 KB
testcase_06 AC 75 ms
71,228 KB
testcase_07 AC 75 ms
71,484 KB
testcase_08 AC 77 ms
71,328 KB
testcase_09 AC 75 ms
71,404 KB
testcase_10 AC 77 ms
75,476 KB
testcase_11 AC 79 ms
75,916 KB
testcase_12 AC 81 ms
76,144 KB
testcase_13 AC 80 ms
76,088 KB
testcase_14 AC 79 ms
76,088 KB
testcase_15 AC 80 ms
76,140 KB
testcase_16 AC 79 ms
75,792 KB
testcase_17 AC 80 ms
75,952 KB
testcase_18 AC 81 ms
76,152 KB
testcase_19 AC 83 ms
76,188 KB
testcase_20 AC 84 ms
76,196 KB
testcase_21 AC 80 ms
76,088 KB
testcase_22 AC 81 ms
76,056 KB
testcase_23 AC 82 ms
76,108 KB
testcase_24 AC 81 ms
76,088 KB
testcase_25 AC 81 ms
76,072 KB
testcase_26 AC 81 ms
75,992 KB
testcase_27 AC 81 ms
75,968 KB
testcase_28 AC 83 ms
76,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0

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