結果

問題 No.2652 [Cherry 6th Tune N] Δρονε χιρχλινγ
ユーザー hirayuu_ychirayuu_yc
提出日時 2024-02-23 21:33:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,026 ms / 2,000 ms
コード長 509 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 128,812 KB
最終ジャッジ日時 2024-02-23 21:35:00
合計ジャッジ時間 60,245 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 429 ms
78,896 KB
testcase_02 AC 450 ms
79,152 KB
testcase_03 AC 443 ms
79,920 KB
testcase_04 AC 629 ms
105,260 KB
testcase_05 AC 622 ms
106,816 KB
testcase_06 AC 665 ms
108,004 KB
testcase_07 AC 812 ms
115,312 KB
testcase_08 AC 797 ms
116,228 KB
testcase_09 AC 847 ms
116,752 KB
testcase_10 AC 871 ms
115,616 KB
testcase_11 AC 866 ms
116,904 KB
testcase_12 AC 827 ms
115,944 KB
testcase_13 AC 940 ms
118,316 KB
testcase_14 AC 971 ms
124,160 KB
testcase_15 AC 971 ms
123,016 KB
testcase_16 AC 885 ms
116,624 KB
testcase_17 AC 916 ms
120,316 KB
testcase_18 AC 933 ms
119,176 KB
testcase_19 AC 874 ms
116,464 KB
testcase_20 AC 988 ms
128,172 KB
testcase_21 AC 985 ms
128,428 KB
testcase_22 AC 941 ms
128,812 KB
testcase_23 AC 932 ms
128,428 KB
testcase_24 AC 965 ms
128,300 KB
testcase_25 AC 950 ms
128,300 KB
testcase_26 AC 968 ms
128,812 KB
testcase_27 AC 976 ms
128,044 KB
testcase_28 AC 999 ms
128,428 KB
testcase_29 AC 1,026 ms
128,428 KB
testcase_30 AC 941 ms
128,556 KB
testcase_31 AC 1,000 ms
128,428 KB
testcase_32 AC 956 ms
128,812 KB
testcase_33 AC 928 ms
128,044 KB
testcase_34 AC 933 ms
128,300 KB
testcase_35 AC 905 ms
128,172 KB
testcase_36 AC 940 ms
128,300 KB
testcase_37 AC 962 ms
128,172 KB
testcase_38 AC 923 ms
128,172 KB
testcase_39 AC 988 ms
128,684 KB
testcase_40 AC 465 ms
124,800 KB
testcase_41 AC 414 ms
125,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit((1<<19)-1)
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
input=sys.stdin.buffer.readline

T=int(input())
for i in range(T):
    N,L=map(int,input().split())
    pos=[tuple(map(int,input().split())) for i in range(N)]
    rp=[]
    cnt=0
    bac=max(1,L//500)
    for x,y in pos:
        p=1
        if (x//bac)%2:
            p=-1
        rp.append((x//bac,(y//bac)*p,cnt))
        cnt+=1
    rp.sort()
    print(N)
    for _,_,i in rp:
        print(*pos[i])
0