結果
| 問題 | No.1229 ラグビーの得点パターン |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-10-24 12:21:00 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-03 05:05:19 |
| 合計ジャッジ時間 | 5,747 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) ans=0 for i in range(50): for j in range(33): res=n-(i*2+j*3) if res>=0 and res%5==0 and res//5>=i: ans+=1 print(ans)
takakin