結果
| 問題 | No.1238 選抜クラス |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-09-25 22:54:42 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 353 ms |
| コンパイル使用メモリ | 20,764 KB |
| 実行使用メモリ | 30,936 KB |
| 最終ジャッジ日時 | 2026-03-16 18:33:58 |
| 合計ジャッジ時間 | 49,759 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 15 |
ソースコード
def f(i, scores, peoples):
result = 0
for j in range(i, N):
if (A[j] + scores) // (peoples + 1) < K:
break
#print(A[j] + scores, peoples + 1)
result += 1
result += f(j + 1, A[j] + scores, peoples + 1)
return result
N, K, *A = map(int, open(0).read().split())
A.sort(reverse = True)
print(f(0, 0, 0))
c-yan