結果

問題 No.412 花火大会
ユーザー convexineqconvexineq
提出日時 2021-02-03 03:59:06
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 86,620 KB
実行使用メモリ 76,012 KB
最終ジャッジ日時 2023-09-12 11:45:05
合計ジャッジ時間 3,252 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,088 KB
testcase_01 AC 72 ms
71,208 KB
testcase_02 AC 72 ms
71,136 KB
testcase_03 AC 72 ms
71,276 KB
testcase_04 AC 71 ms
71,296 KB
testcase_05 AC 72 ms
71,244 KB
testcase_06 AC 77 ms
75,888 KB
testcase_07 AC 78 ms
75,900 KB
testcase_08 AC 71 ms
71,200 KB
testcase_09 AC 71 ms
71,108 KB
testcase_10 AC 72 ms
71,176 KB
testcase_11 AC 73 ms
71,212 KB
testcase_12 AC 73 ms
71,300 KB
testcase_13 AC 72 ms
71,276 KB
testcase_14 AC 72 ms
71,184 KB
testcase_15 AC 73 ms
71,352 KB
testcase_16 AC 71 ms
71,332 KB
testcase_17 AC 71 ms
71,324 KB
testcase_18 AC 79 ms
75,856 KB
testcase_19 AC 79 ms
76,012 KB
testcase_20 AC 77 ms
75,832 KB
testcase_21 AC 78 ms
75,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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