結果

問題 No.2652 [Cherry 6th Tune N] Δρονε χιρχλινγ
ユーザー yupoohyupooh
提出日時 2024-02-23 23:07:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 102,288 KB
最終ジャッジ日時 2024-02-23 23:07:46
合計ジャッジ時間 35,520 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
61,972 KB
testcase_01 AC 387 ms
80,152 KB
testcase_02 AC 364 ms
80,280 KB
testcase_03 AC 339 ms
80,012 KB
testcase_04 AC 320 ms
84,520 KB
testcase_05 AC 335 ms
84,688 KB
testcase_06 AC 317 ms
85,092 KB
testcase_07 AC 361 ms
86,928 KB
testcase_08 AC 354 ms
86,532 KB
testcase_09 AC 352 ms
89,232 KB
testcase_10 AC 361 ms
88,540 KB
testcase_11 AC 344 ms
87,964 KB
testcase_12 AC 367 ms
87,312 KB
testcase_13 AC 355 ms
92,704 KB
testcase_14 AC 392 ms
98,960 KB
testcase_15 WA -
testcase_16 AC 361 ms
87,360 KB
testcase_17 AC 354 ms
91,728 KB
testcase_18 AC 369 ms
90,320 KB
testcase_19 AC 359 ms
91,024 KB
testcase_20 AC 337 ms
99,472 KB
testcase_21 AC 341 ms
99,484 KB
testcase_22 AC 341 ms
99,344 KB
testcase_23 AC 365 ms
99,472 KB
testcase_24 AC 336 ms
99,344 KB
testcase_25 WA -
testcase_26 AC 334 ms
99,472 KB
testcase_27 AC 338 ms
99,600 KB
testcase_28 AC 345 ms
99,472 KB
testcase_29 AC 335 ms
99,600 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 233 ms
102,288 KB
testcase_41 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
t=int(input())
for _ in range(t):
  n,l=map(int,input().split())
  M=1000
  bucket=[[] for i in range(M)]
  for i in range(n):
    x,y=map(int,input().split())
    bucket[x*M//(10**9+1)].append((x,y)) 
  for i in range(M):
    if i&1:
      bucket[i].sort(key=lambda x:-x[1])
    else:
      bucket[i].sort(key=lambda x:x[1])
  ans=[]
  for i in range(M):
    for j in bucket[i]:
      ans.append(j)
  print(n)
  for i in ans:
    print(*i)
0