結果
| 問題 | 
                            No.2142 Segment Zero
                             | 
                    
| コンテスト | |
| ユーザー | 
                             k_s_y_3
                         | 
                    
| 提出日時 | 2022-12-22 20:22:21 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 197 bytes | 
| コンパイル時間 | 221 ms | 
| コンパイル使用メモリ | 82,248 KB | 
| 実行使用メモリ | 57,896 KB | 
| 最終ジャッジ日時 | 2024-11-18 03:26:31 | 
| 合計ジャッジ時間 | 6,049 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 20 WA * 14 TLE * 1 | 
ソースコード
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()
            
            
            
        
            
k_s_y_3