結果

問題 No.1052 電子機器X
ユーザー nephrologist
提出日時 2020-05-15 21:36:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 198 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 293,156 KB
最終ジャッジ日時 2024-09-19 08:55:12
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
mod = n
ans = set()
cnt=0
for i in range(k+1):
    temp=0
    temp+=i
    temp-=n-i
    temp%=n
    if temp in ans:
        break
    ans.add(temp)
    cnt+=1
print(cnt)
0