結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー nohakai3nohakai3
提出日時 2022-06-26 17:35:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 337 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 19,328 KB
最終ジャッジ日時 2024-04-28 12:25:08
合計ジャッジ時間 7,391 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
16,000 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 66 ms
11,008 KB
testcase_05 AC 64 ms
11,136 KB
testcase_06 AC 66 ms
11,008 KB
testcase_07 AC 55 ms
11,008 KB
testcase_08 AC 54 ms
11,008 KB
testcase_09 AC 55 ms
11,264 KB
testcase_10 AC 66 ms
11,136 KB
testcase_11 AC 53 ms
11,136 KB
testcase_12 AC 31 ms
10,752 KB
testcase_13 AC 31 ms
10,624 KB
testcase_14 AC 31 ms
10,752 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 31 ms
10,752 KB
testcase_17 AC 31 ms
10,624 KB
testcase_18 AC 31 ms
10,624 KB
testcase_19 AC 31 ms
10,752 KB
testcase_20 AC 32 ms
10,752 KB
testcase_21 AC 32 ms
10,624 KB
testcase_22 AC 31 ms
10,624 KB
testcase_23 AC 30 ms
10,752 KB
testcase_24 AC 31 ms
10,624 KB
testcase_25 AC 31 ms
10,752 KB
testcase_26 AC 31 ms
10,752 KB
testcase_27 AC 32 ms
10,624 KB
testcase_28 AC 31 ms
10,624 KB
testcase_29 AC 31 ms
10,752 KB
testcase_30 AC 31 ms
10,624 KB
testcase_31 AC 31 ms
10,624 KB
testcase_32 TLE -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
l=[]
l2=[]
for i in range(n):
    a,b=map(str,input().split())
    b=int(b)
    l2.append(a)
    l.append([a,b])

for j in range(m):
    a,b=map(str,input().split())
    b=int(b)
    if a in l2:
        x=l2.index(a)
        l[x][1]=b
    else:
        l.append([a,b])
    
l.sort()
for x in l:
    print(*x)
0