結果

問題 No.3042 本棚
ユーザー KentarokumuraKentarokumura
提出日時 2019-04-01 22:11:58
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-09-10 10:27:14
合計ジャッジ時間 3,749 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,228 KB
testcase_01 AC 78 ms
71,404 KB
testcase_02 AC 78 ms
71,276 KB
testcase_03 AC 84 ms
71,536 KB
testcase_04 AC 79 ms
71,204 KB
testcase_05 AC 81 ms
71,232 KB
testcase_06 AC 79 ms
71,452 KB
testcase_07 AC 79 ms
71,436 KB
testcase_08 AC 79 ms
71,452 KB
testcase_09 AC 79 ms
71,400 KB
testcase_10 AC 79 ms
71,436 KB
testcase_11 AC 80 ms
71,468 KB
testcase_12 AC 78 ms
71,380 KB
testcase_13 AC 80 ms
71,224 KB
testcase_14 AC 79 ms
71,400 KB
testcase_15 AC 80 ms
71,464 KB
testcase_16 AC 78 ms
71,352 KB
testcase_17 AC 78 ms
71,196 KB
testcase_18 AC 78 ms
71,200 KB
testcase_19 AC 78 ms
71,264 KB
testcase_20 AC 77 ms
71,268 KB
testcase_21 AC 75 ms
71,204 KB
testcase_22 AC 75 ms
71,288 KB
testcase_23 AC 77 ms
71,384 KB
testcase_24 AC 77 ms
71,464 KB
testcase_25 AC 76 ms
71,576 KB
testcase_26 AC 78 ms
71,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from operator import itemgetter
N=int(input())
L={"iti":1,"ni":2,"san":3,"yon":4}
LA={1:"iti",2:"ni",3:"san",4:"yon"}
table=[]
for i in range(N):
    a,b=input().split()
    table.append((a,L[b]))
table.sort(key=itemgetter(1))
table.sort(key=itemgetter(0))
for a,b in table:
    print(a,LA[b])
0