結果
| 問題 | No.412 花火大会 |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-03-06 19:04:16 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 659µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-16 04:26:51 |
| 合計ジャッジ時間 | 1,890 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 |
ソースコード
#!/usr/bin/env python3
# %%
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import itertools
# %%
B, C, D, N, *E = map(int, read().split())
# %%
E.sort()
B, C, D = sorted([B, C, D])
# %%
answer = 0
for i, j, k in itertools.combinations(range(N), 3):
if E[i] >= B and E[j] >= C and E[k] >= D:
answer += pow(2, i)
print(answer)
maspy