結果

問題 No.1229 ラグビーの得点パターン
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-08-22 08:47:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 57,920 KB
最終ジャッジ日時 2024-04-23 22:37:58
合計ジャッジ時間 2,115 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 35 ms
51,980 KB
testcase_03 AC 38 ms
57,920 KB
testcase_04 AC 35 ms
52,248 KB
testcase_05 AC 35 ms
52,396 KB
testcase_06 AC 35 ms
52,096 KB
testcase_07 AC 34 ms
51,836 KB
testcase_08 AC 35 ms
52,336 KB
testcase_09 AC 33 ms
52,688 KB
testcase_10 AC 34 ms
52,928 KB
testcase_11 AC 35 ms
52,212 KB
testcase_12 AC 35 ms
52,204 KB
testcase_13 AC 35 ms
52,596 KB
testcase_14 AC 33 ms
52,332 KB
testcase_15 AC 34 ms
53,168 KB
testcase_16 AC 34 ms
51,996 KB
testcase_17 AC 34 ms
53,700 KB
testcase_18 AC 35 ms
53,012 KB
testcase_19 AC 35 ms
52,484 KB
testcase_20 AC 34 ms
54,064 KB
testcase_21 AC 35 ms
52,620 KB
testcase_22 AC 35 ms
53,456 KB
testcase_23 AC 35 ms
52,028 KB
testcase_24 AC 35 ms
52,032 KB
testcase_25 AC 36 ms
52,264 KB
testcase_26 AC 34 ms
52,764 KB
testcase_27 AC 34 ms
52,768 KB
testcase_28 AC 38 ms
52,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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