結果
問題 |
No.1229 ラグビーの得点パターン
|
ユーザー |
![]() |
提出日時 | 2021-08-22 08:50:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 185 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 82,552 KB |
実行使用メモリ | 59,556 KB |
最終ジャッジ日時 | 2024-11-06 04:56:46 |
合計ジャッジ時間 | 2,366 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
n = int(input()) ans = 0 for i in range(33): for j in range(33): if i >= j: if n >= 5*i + 2*j and (n - (5*i + 2*j)) % 3 == 0: ans += 1 print(ans)