結果

問題 No.1981 [Cherry 4th Tune N] アルゴリズムが破滅する例
ユーザー ああいいああいい
提出日時 2022-06-28 12:08:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 60,668 KB
最終ジャッジ日時 2024-05-01 03:11:34
合計ジャッジ時間 5,809 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,328 KB
testcase_01 AC 36 ms
52,772 KB
testcase_02 AC 36 ms
52,468 KB
testcase_03 AC 38 ms
54,596 KB
testcase_04 AC 42 ms
60,440 KB
testcase_05 AC 41 ms
54,312 KB
testcase_06 AC 41 ms
60,008 KB
testcase_07 AC 34 ms
53,224 KB
testcase_08 AC 35 ms
53,344 KB
testcase_09 AC 36 ms
52,736 KB
testcase_10 AC 39 ms
54,020 KB
testcase_11 AC 39 ms
53,336 KB
testcase_12 AC 36 ms
53,272 KB
testcase_13 AC 37 ms
53,812 KB
testcase_14 AC 36 ms
52,268 KB
testcase_15 AC 43 ms
60,668 KB
testcase_16 AC 35 ms
53,352 KB
testcase_17 AC 35 ms
53,436 KB
testcase_18 AC 38 ms
58,880 KB
testcase_19 AC 43 ms
58,908 KB
testcase_20 AC 42 ms
59,212 KB
testcase_21 AC 37 ms
53,348 KB
testcase_22 AC 34 ms
53,144 KB
testcase_23 AC 34 ms
53,308 KB
testcase_24 AC 34 ms
52,756 KB
testcase_25 AC 34 ms
53,040 KB
testcase_26 AC 37 ms
54,276 KB
testcase_27 AC 35 ms
52,628 KB
testcase_28 AC 34 ms
52,588 KB
testcase_29 AC 36 ms
52,832 KB
testcase_30 AC 41 ms
60,280 KB
testcase_31 AC 34 ms
52,816 KB
testcase_32 AC 36 ms
52,948 KB
testcase_33 AC 39 ms
58,884 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 39 ms
54,100 KB
testcase_37 WA -
testcase_38 AC 35 ms
52,688 KB
testcase_39 AC 34 ms
53,088 KB
testcase_40 AC 35 ms
52,888 KB
testcase_41 AC 36 ms
52,420 KB
testcase_42 AC 34 ms
53,008 KB
testcase_43 AC 35 ms
52,444 KB
testcase_44 AC 34 ms
52,388 KB
testcase_45 AC 34 ms
52,824 KB
testcase_46 WA -
testcase_47 AC 40 ms
58,844 KB
testcase_48 AC 41 ms
59,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
import sys
if K <= N // 2:
    print(-1)
    exit()

ans = []
for i in range(1,K + 1):
    ans.append((i,i))
u = N - K
for i in range(1,u + 1):
    ans.append((i,K + i))
    ans.append((K + i,i))
print(len(ans))
for a,b in ans:
    print(a,b)
0