結果
| 問題 |
No.110 しましまピラミッド
|
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2019-01-08 22:00:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 401 bytes |
| コンパイル時間 | 304 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-31 11:49:47 |
| 合計ジャッジ時間 | 2,302 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 WA * 1 |
ソースコード
nw = int(input())
brick = [(int(x), True) for x in input().split()]
nb = int(input())
brick += [(int(x), False) for x in input().split()]
res = 0
brick.sort(key=lambda b: b[0], reverse=True)
for st in brick[:2]:
prev = st
cnt = 1
for b in brick:
if b[0] < prev[0] and b[1] != prev[1]:
prev = b
cnt += 1
res = max(cnt, res)
print(res)
kutsutama