結果
問題 |
No.110 しましまピラミッド
|
ユーザー |
|
提出日時 | 2015-02-10 18:44:56 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 417 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 18:18:17 |
合計ジャッジ時間 | 1,730 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 11 WA * 15 |
ソースコード
Nw = int(raw_input()) W = list(set(map(int,raw_input().split()))) Nb = int(raw_input()) B = list(set(map(int,raw_input().split()))) WB = sorted([[w,"w"] for w in W] + [[b,"b"] for b in B])[::-1] ans = 0 for sp in range(2): bar,col = WB[sp] tmp = 1 for i,wb in WB[sp+1:]: if wb != col and i < bar: tmp += 1 col = wb bar = i ans = max(ans,tmp) print tmp