結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー | Kude |
提出日時 | 2020-09-18 21:22:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 87,256 KB |
実行使用メモリ | 71,664 KB |
最終ジャッジ日時 | 2023-09-04 09:25:59 |
合計ジャッジ時間 | 3,915 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 75 ms
71,364 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 74 ms
71,448 KB |
testcase_05 | AC | 74 ms
71,360 KB |
testcase_06 | AC | 74 ms
71,524 KB |
testcase_07 | AC | 75 ms
71,340 KB |
testcase_08 | AC | 75 ms
71,592 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 76 ms
71,224 KB |
testcase_13 | WA | - |
testcase_14 | AC | 72 ms
71,316 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
ソースコード
n = int(input()) ans = 0 for t in range(21): for g in range(t + 1): r = n - 5 * t - 2 * t if r >= 0 and r % 3 == 0: ans += 1 print(ans)