結果

問題 No.2652 [Cherry 6th Tune N] Δρονε χιρχλινγ
ユーザー ゼットゼット
提出日時 2024-02-23 23:06:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 611 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 105,828 KB
最終ジャッジ日時 2024-02-23 23:07:41
合計ジャッジ時間 45,763 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,332 KB
testcase_01 AC 390 ms
77,776 KB
testcase_02 AC 388 ms
78,440 KB
testcase_03 AC 391 ms
79,172 KB
testcase_04 AC 474 ms
86,532 KB
testcase_05 AC 477 ms
87,788 KB
testcase_06 AC 472 ms
87,684 KB
testcase_07 AC 543 ms
91,752 KB
testcase_08 AC 532 ms
91,536 KB
testcase_09 AC 558 ms
93,568 KB
testcase_10 AC 556 ms
93,216 KB
testcase_11 AC 535 ms
92,044 KB
testcase_12 AC 535 ms
92,196 KB
testcase_13 AC 589 ms
96,740 KB
testcase_14 AC 595 ms
104,804 KB
testcase_15 AC 577 ms
98,652 KB
testcase_16 AC 538 ms
92,364 KB
testcase_17 AC 557 ms
96,972 KB
testcase_18 AC 611 ms
96,496 KB
testcase_19 AC 591 ms
94,436 KB
testcase_20 AC 558 ms
105,828 KB
testcase_21 AC 561 ms
105,828 KB
testcase_22 AC 547 ms
105,828 KB
testcase_23 AC 586 ms
105,828 KB
testcase_24 AC 584 ms
105,712 KB
testcase_25 AC 588 ms
105,828 KB
testcase_26 AC 551 ms
105,828 KB
testcase_27 AC 554 ms
105,828 KB
testcase_28 AC 559 ms
105,828 KB
testcase_29 AC 574 ms
105,700 KB
testcase_30 AC 574 ms
105,828 KB
testcase_31 AC 558 ms
105,700 KB
testcase_32 AC 555 ms
105,828 KB
testcase_33 AC 559 ms
105,700 KB
testcase_34 AC 579 ms
105,700 KB
testcase_35 AC 582 ms
105,828 KB
testcase_36 AC 553 ms
105,828 KB
testcase_37 AC 552 ms
105,700 KB
testcase_38 AC 555 ms
105,700 KB
testcase_39 AC 565 ms
105,700 KB
testcase_40 AC 326 ms
105,448 KB
testcase_41 AC 429 ms
100,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q=int(input())
for _ in range(Q):
  N,L=map(int,input().split())
  k=L//300+1
  G=[[] for i in range(300)]
  for i in range(N):
    x,y=map(int,input().split())
    pos=x//k
    G[pos].append((y,x))
  for i in range(300):
    G[i].sort()
  result=[]
  for i in range(300):
    for B in G[i]:
      y,x=B[:]
      result.append((x,y))
  print(len(result))
  for i in range(len(result)):
    x,y=result[i][:]
    print(x,y)
0