結果

問題 No.2142 Segment Zero
ユーザー k_s_y_3k_s_y_3
提出日時 2022-12-22 20:25:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2024-04-29 03:49:42
合計ジャッジ時間 2,482 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,712 KB
testcase_01 AC 34 ms
51,712 KB
testcase_02 AC 34 ms
51,840 KB
testcase_03 AC 41 ms
57,728 KB
testcase_04 AC 40 ms
57,728 KB
testcase_05 AC 40 ms
57,088 KB
testcase_06 AC 37 ms
51,968 KB
testcase_07 WA -
testcase_08 AC 38 ms
57,216 KB
testcase_09 WA -
testcase_10 AC 36 ms
57,216 KB
testcase_11 AC 36 ms
57,216 KB
testcase_12 AC 35 ms
57,344 KB
testcase_13 AC 36 ms
57,728 KB
testcase_14 AC 35 ms
57,600 KB
testcase_15 AC 35 ms
57,344 KB
testcase_16 AC 36 ms
57,476 KB
testcase_17 AC 36 ms
56,960 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 35 ms
52,480 KB
testcase_21 WA -
testcase_22 AC 34 ms
52,096 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 41 ms
57,344 KB
testcase_29 AC 37 ms
57,600 KB
testcase_30 AC 37 ms
57,728 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 37 ms
57,472 KB
testcase_36 AC 36 ms
57,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
num=N
while(True):
    if num<=K:
        K-=num
        num-=1
    if K<=1 or K==num:
        print(1)
        exit()
    elif 1<K<num:
        print(2)
        exit()
0