結果
| 問題 | No.2142 Segment Zero |
| コンテスト | |
| ユーザー |
k_s_y_3
|
| 提出日時 | 2022-12-22 20:22:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 51,712 KB |
| 最終ジャッジ日時 | 2026-05-12 18:35:50 |
| 合計ジャッジ時間 | 4,078 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 34 |
ソースコード
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