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