結果

問題 No.1229 ラグビーの得点パターン
ユーザー IHIH
提出日時 2020-09-20 20:28:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 482 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 76,600 KB
最終ジャッジ日時 2023-09-06 16:31:14
合計ジャッジ時間 3,790 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 67 ms
71,288 KB
testcase_02 AC 72 ms
75,988 KB
testcase_03 AC 78 ms
76,224 KB
testcase_04 AC 71 ms
71,268 KB
testcase_05 AC 68 ms
71,252 KB
testcase_06 AC 68 ms
71,252 KB
testcase_07 AC 70 ms
71,268 KB
testcase_08 AC 70 ms
71,120 KB
testcase_09 AC 71 ms
71,368 KB
testcase_10 AC 75 ms
76,136 KB
testcase_11 AC 75 ms
75,992 KB
testcase_12 AC 77 ms
76,296 KB
testcase_13 AC 77 ms
76,248 KB
testcase_14 AC 80 ms
76,220 KB
testcase_15 AC 79 ms
76,012 KB
testcase_16 AC 82 ms
76,220 KB
testcase_17 AC 81 ms
76,524 KB
testcase_18 AC 78 ms
76,600 KB
testcase_19 AC 76 ms
76,416 KB
testcase_20 AC 76 ms
76,220 KB
testcase_21 AC 76 ms
76,276 KB
testcase_22 AC 76 ms
76,228 KB
testcase_23 AC 77 ms
76,008 KB
testcase_24 AC 77 ms
76,244 KB
testcase_25 AC 76 ms
76,328 KB
testcase_26 AC 78 ms
76,284 KB
testcase_27 AC 78 ms
76,244 KB
testcase_28 AC 78 ms
76,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

c = 0

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