結果
| 問題 |
No.110 しましまピラミッド
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-03 08:51:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-13 01:52:48 |
| 合計ジャッジ時間 | 1,703 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
i=input i() W=set(map(int,i().split())) i() B=set(map(int,i().split())) w,b=1,1 c=0 for x in sorted(list(W|B)): if x in W and x in B: c+=1; w,b=b,w elif x in W and b: c+=1; w,b=1,0 elif x in B and w: c+=1; w,b=0,1 print(c)