結果

問題 No.412 花火大会
ユーザー rlangevinrlangevin
提出日時 2023-08-25 12:40:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 76,560 KB
最終ジャッジ日時 2023-08-25 12:41:02
合計ジャッジ時間 2,961 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
71,268 KB
testcase_01 AC 60 ms
71,252 KB
testcase_02 AC 62 ms
71,360 KB
testcase_03 AC 61 ms
71,428 KB
testcase_04 AC 64 ms
71,484 KB
testcase_05 AC 77 ms
71,272 KB
testcase_06 AC 63 ms
76,020 KB
testcase_07 AC 65 ms
76,376 KB
testcase_08 AC 59 ms
71,356 KB
testcase_09 AC 59 ms
71,420 KB
testcase_10 AC 59 ms
71,332 KB
testcase_11 AC 59 ms
71,516 KB
testcase_12 AC 59 ms
71,448 KB
testcase_13 AC 61 ms
71,072 KB
testcase_14 AC 62 ms
71,420 KB
testcase_15 AC 61 ms
71,556 KB
testcase_16 AC 59 ms
71,448 KB
testcase_17 AC 58 ms
71,596 KB
testcase_18 AC 68 ms
76,328 KB
testcase_19 AC 64 ms
76,252 KB
testcase_20 AC 67 ms
76,236 KB
testcase_21 AC 63 ms
76,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

B = sorted(list(map(int, input().split())))
N = int(input())
E = sorted(list(map(int, input().split())))
ans = 0
for a in range(N):
    for b in range(a + 1, N):
        for c in range(b + 1, N):
            if B[0] > E[a] or B[1] > E[b] or B[2] > E[c]:
                continue
            ans += 2 ** a

print(ans)
0