結果

問題 No.1229 ラグビーの得点パターン
ユーザー daikisuyamadaikisuyama
提出日時 2020-09-18 21:46:11
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 76,720 KB
最終ジャッジ日時 2023-09-04 10:23:35
合計ジャッジ時間 3,813 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,288 KB
testcase_01 AC 75 ms
71,120 KB
testcase_02 AC 74 ms
71,380 KB
testcase_03 AC 84 ms
76,564 KB
testcase_04 AC 76 ms
71,468 KB
testcase_05 AC 74 ms
71,112 KB
testcase_06 AC 77 ms
71,208 KB
testcase_07 AC 76 ms
71,112 KB
testcase_08 AC 75 ms
71,260 KB
testcase_09 AC 76 ms
71,556 KB
testcase_10 AC 77 ms
71,064 KB
testcase_11 AC 77 ms
71,212 KB
testcase_12 AC 80 ms
75,932 KB
testcase_13 AC 80 ms
75,836 KB
testcase_14 AC 80 ms
75,752 KB
testcase_15 AC 82 ms
76,420 KB
testcase_16 AC 79 ms
76,328 KB
testcase_17 AC 81 ms
76,296 KB
testcase_18 AC 83 ms
76,376 KB
testcase_19 AC 80 ms
76,360 KB
testcase_20 AC 82 ms
76,520 KB
testcase_21 AC 80 ms
76,116 KB
testcase_22 AC 81 ms
76,204 KB
testcase_23 AC 82 ms
76,720 KB
testcase_24 AC 82 ms
76,520 KB
testcase_25 AC 82 ms
76,432 KB
testcase_26 AC 83 ms
76,336 KB
testcase_27 AC 84 ms
76,328 KB
testcase_28 AC 84 ms
76,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=0
for i in range(n//5+1):
    for j in range(n//2+1):
        for k in range(n//3+1):
            ans+=(i*5+j*2+k*3==n and i>=j)
print(ans)
0