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