結果
| 問題 | No.973 余興 |
| コンテスト | |
| ユーザー |
chinchilla
|
| 提出日時 | 2020-01-28 04:51:23 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 16,892 KB |
| 最終ジャッジ日時 | 2026-08-27 12:32:31 |
| 合計ジャッジ時間 | 133,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 49 TLE * 5 |
ソースコード
n, x = [int(w) for w in input().split()]
a = [int(w) for w in input().split()]
def f(i, j):
return (0, 0) if i>x and j>x else (i, j)
l = [(0, 0, i, i) for i in a]
while len(l) > 1:
l = [f(t[0]+u[3], u[1]+t[2])+ (t[2], u[3])
for t, u in zip(l, l[1:])]
print("A" if l[0][0] else "B")
chinchilla