結果

問題 No.412 花火大会
ユーザー sasa8uyauyasasa8uyauya
提出日時 2024-09-11 03:36:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 53,752 KB
最終ジャッジ日時 2024-09-11 03:36:22
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,020 KB
testcase_01 WA -
testcase_02 AC 37 ms
52,688 KB
testcase_03 WA -
testcase_04 AC 37 ms
52,880 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 37 ms
52,128 KB
testcase_09 AC 36 ms
52,092 KB
testcase_10 AC 37 ms
52,284 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 36 ms
53,496 KB
testcase_17 AC 39 ms
52,604 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 38 ms
53,472 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a=list(map(int,input().split()))
n=int(input())
e=list(map(int,input().split()))
e.sort()
q=[1,0,0,0]
for v in e:
	q[3]+=q[3]+q[2]*(v>=a[2])
	q[2]+=q[2]+q[1]*(v>=a[1])
	q[1]+=q[1]+q[0]*(v>=a[0])
	q[0]+=q[0]
print(q[3])
0