結果

問題 No.2652 [Cherry 6th Tune N] Δρονε χιρχλινγ
ユーザー ニックネームニックネーム
提出日時 2024-02-23 22:25:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,169 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 548 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 115,712 KB
最終ジャッジ日時 2024-02-23 22:26:10
合計ジャッジ時間 63,085 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,716 KB
testcase_01 AC 610 ms
78,676 KB
testcase_02 AC 620 ms
79,176 KB
testcase_03 AC 607 ms
80,980 KB
testcase_04 AC 775 ms
95,464 KB
testcase_05 AC 768 ms
95,752 KB
testcase_06 AC 771 ms
96,336 KB
testcase_07 AC 951 ms
99,824 KB
testcase_08 AC 939 ms
99,980 KB
testcase_09 AC 983 ms
100,440 KB
testcase_10 AC 969 ms
100,688 KB
testcase_11 AC 986 ms
100,276 KB
testcase_12 AC 989 ms
99,792 KB
testcase_13 AC 1,069 ms
103,876 KB
testcase_14 AC 1,101 ms
115,712 KB
testcase_15 AC 1,073 ms
108,572 KB
testcase_16 AC 1,025 ms
100,888 KB
testcase_17 AC 1,055 ms
105,684 KB
testcase_18 AC 1,088 ms
104,728 KB
testcase_19 AC 1,021 ms
103,692 KB
testcase_20 AC 1,133 ms
110,292 KB
testcase_21 AC 1,130 ms
110,028 KB
testcase_22 AC 1,133 ms
110,292 KB
testcase_23 AC 1,133 ms
110,284 KB
testcase_24 AC 1,106 ms
109,908 KB
testcase_25 AC 1,147 ms
110,024 KB
testcase_26 AC 1,128 ms
110,412 KB
testcase_27 AC 1,139 ms
110,428 KB
testcase_28 AC 1,155 ms
110,288 KB
testcase_29 AC 1,134 ms
110,288 KB
testcase_30 AC 1,161 ms
110,404 KB
testcase_31 AC 1,146 ms
110,024 KB
testcase_32 AC 1,110 ms
110,408 KB
testcase_33 AC 1,131 ms
110,280 KB
testcase_34 AC 1,165 ms
110,284 KB
testcase_35 AC 1,155 ms
110,024 KB
testcase_36 AC 1,163 ms
110,020 KB
testcase_37 AC 1,169 ms
109,896 KB
testcase_38 AC 1,141 ms
110,408 KB
testcase_39 AC 1,146 ms
110,028 KB
testcase_40 AC 544 ms
115,024 KB
testcase_41 AC 446 ms
114,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    n,l = map(int,input().split())
    xy = sorted(tuple(map(int,input().split())) for _ in range(n))
    a = []; m = int(n**0.5)+1; print(n)
    for i in range(m):
        b = sorted(xy[i*m:(i+1)*m],key=lambda x:x[1])
        if i%2: b.reverse()
        a += b
    for x,y in a: print(x,y)
0