結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー |
|
提出日時 | 2020-11-01 12:11:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-22 05:42:42 |
合計ジャッジ時間 | 2,297 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
N = int(input()) import itertools TG_max = int(N/7) T_max = int(N/5) P_max = int(N/3) TG = [i*7 for i in range(TG_max+1)] T = [i*5 for i in range(T_max+1)] P = [i*3 for i in range(P_max+1)] print(sum([1 for i in itertools.product(TG,T,P) if sum(i)==N]))