結果

問題 No.2142 Segment Zero
ユーザー k_s_y_3
提出日時 2022-12-22 20:25:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 59,672 KB
最終ジャッジ日時 2024-11-18 03:26:39
合計ジャッジ時間 2,796 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 14
権限があれば一括ダウンロードができます

ソースコード

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