結果
問題 |
No.412 花火大会
|
ユーザー |
![]() |
提出日時 | 2016-08-21 02:05:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-07 21:43:29 |
合計ジャッジ時間 | 1,959 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 |
ソースコード
X = sorted(map(int, input().split())) N = int(input()) A = sorted(map(int, input().split())) dp = [1, 0, 0, 0] for a in A: for ok in reversed(range(4)): dp[ok + (ok < 3 and a >= X[ok])] += dp[ok] print(dp[3])