結果
問題 |
No.1229 ラグビーの得点パターン
|
ユーザー |
![]() |
提出日時 | 2021-11-18 19:21:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 1,049 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 59,264 KB |
最終ジャッジ日時 | 2024-12-26 19:22:53 |
合計ジャッジ時間 | 3,425 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
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()