結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー | superzugan |
提出日時 | 2020-09-24 01:58:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-28 04:46:17 |
合計ジャッジ時間 | 2,054 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
x = int ( input ( ) ) cnt = 0 for i in range ( 21 ): for j in range ( 34 ): for k in range ( 51 ): if i>=k and i * 5 + j * 3 + k * 2 == x: cnt += 1 # print(i,j,k) if i>=k and i * 5 + j * 3 + k * 2 > x: continue print ( cnt )