結果

問題 No.412 花火大会
コンテスト
ユーザー convexineq
提出日時 2021-02-03 03:59:06
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 205 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 211 ms
コンパイル使用メモリ 85,120 KB
実行使用メモリ 60,288 KB
最終ジャッジ日時 2026-03-19 15:55:52
合計ジャッジ時間 1,899 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

b,c,d,n,*a = map(int,open(0).read().split())
b,c,d = sorted([b,c,d])
from itertools import combinations
a.sort()
print(sum((b <= a[i] and c <= a[j] and d <= a[k])<<i for i,j,k in combinations(range(n),3)))
0