結果

問題 No.1026 OGAWA's New Keyboard
ユーザー panyapanya
提出日時 2020-04-14 19:58:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 685 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2023-10-14 10:03:37
合計ジャッジ時間 7,819 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
29,392 KB
testcase_01 AC 127 ms
29,352 KB
testcase_02 AC 129 ms
29,336 KB
testcase_03 AC 128 ms
29,432 KB
testcase_04 AC 685 ms
57,600 KB
testcase_05 AC 142 ms
30,084 KB
testcase_06 AC 149 ms
30,436 KB
testcase_07 AC 460 ms
46,368 KB
testcase_08 AC 136 ms
29,908 KB
testcase_09 AC 127 ms
29,456 KB
testcase_10 AC 132 ms
29,572 KB
testcase_11 AC 130 ms
29,528 KB
testcase_12 AC 129 ms
29,416 KB
testcase_13 AC 129 ms
29,436 KB
testcase_14 AC 129 ms
29,496 KB
testcase_15 AC 130 ms
29,460 KB
testcase_16 AC 135 ms
29,508 KB
testcase_17 AC 259 ms
36,264 KB
testcase_18 AC 133 ms
29,544 KB
testcase_19 AC 245 ms
35,196 KB
testcase_20 AC 132 ms
29,416 KB
testcase_21 AC 131 ms
29,416 KB
testcase_22 AC 131 ms
29,436 KB
testcase_23 AC 133 ms
29,528 KB
testcase_24 AC 397 ms
42,964 KB
testcase_25 AC 133 ms
29,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n=int(input())
aa=np.array([list(input().split()) for _ in range(n)])
x=aa[np.where(aa[:,0]=='1')][:,1][::-1]
y=aa[np.where(aa[:,0]=='0')][:,1]
print(''.join(np.append(x,y)))
0