結果

問題 No.110 しましまピラミッド
ユーザー roiti46roiti46
提出日時 2015-02-10 18:42:27
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 6,132 KB
最終ジャッジ日時 2023-09-05 22:56:07
合計ジャッジ時間 2,721 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,016 KB
testcase_01 WA -
testcase_02 AC 10 ms
5,952 KB
testcase_03 WA -
testcase_04 AC 11 ms
6,072 KB
testcase_05 AC 10 ms
6,096 KB
testcase_06 AC 10 ms
5,976 KB
testcase_07 AC 11 ms
6,016 KB
testcase_08 AC 10 ms
6,012 KB
testcase_09 AC 11 ms
5,860 KB
testcase_10 AC 10 ms
5,932 KB
testcase_11 AC 11 ms
6,056 KB
testcase_12 AC 10 ms
5,920 KB
testcase_13 AC 10 ms
6,088 KB
testcase_14 AC 11 ms
5,936 KB
testcase_15 AC 10 ms
5,848 KB
testcase_16 AC 11 ms
5,976 KB
testcase_17 AC 10 ms
5,932 KB
testcase_18 AC 10 ms
5,840 KB
testcase_19 WA -
testcase_20 AC 10 ms
6,012 KB
testcase_21 AC 10 ms
5,856 KB
testcase_22 WA -
testcase_23 AC 10 ms
6,072 KB
testcase_24 AC 10 ms
6,044 KB
testcase_25 WA -
testcase_26 AC 9 ms
5,860 KB
testcase_27 AC 11 ms
5,888 KB
testcase_28 WA -
testcase_29 AC 11 ms
6,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
    
0