結果

問題 No.1229 ラグビーの得点パターン
ユーザー mesame3993mesame3993
提出日時 2021-11-18 19:21:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 733 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 76,312 KB
最終ジャッジ日時 2023-08-27 07:22:33
合計ジャッジ時間 4,143 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,404 KB
testcase_01 AC 74 ms
71,260 KB
testcase_02 AC 73 ms
71,260 KB
testcase_03 AC 78 ms
75,968 KB
testcase_04 AC 76 ms
71,596 KB
testcase_05 AC 76 ms
71,264 KB
testcase_06 AC 77 ms
71,260 KB
testcase_07 AC 76 ms
71,244 KB
testcase_08 AC 75 ms
71,500 KB
testcase_09 AC 75 ms
71,240 KB
testcase_10 AC 75 ms
71,404 KB
testcase_11 AC 77 ms
76,072 KB
testcase_12 AC 78 ms
75,100 KB
testcase_13 AC 78 ms
75,228 KB
testcase_14 AC 79 ms
76,128 KB
testcase_15 AC 79 ms
76,020 KB
testcase_16 AC 80 ms
76,160 KB
testcase_17 AC 80 ms
76,312 KB
testcase_18 AC 80 ms
76,112 KB
testcase_19 AC 79 ms
76,168 KB
testcase_20 AC 78 ms
76,144 KB
testcase_21 AC 79 ms
76,208 KB
testcase_22 AC 79 ms
76,132 KB
testcase_23 AC 79 ms
76,152 KB
testcase_24 AC 80 ms
76,020 KB
testcase_25 AC 79 ms
76,040 KB
testcase_26 AC 80 ms
76,072 KB
testcase_27 AC 81 ms
76,128 KB
testcase_28 AC 82 ms
76,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  from itertools import permutations
  readline=stdin.readline
  n = int(readline())
  cnt = 0
  for t in range(n//2+1):
    for g in range(0, t+1):
      for pg in range(n//3+1):
        if 5*t + 2*g + 3*pg == n:
          cnt += 1
  print(cnt)
main()
0