結果

問題 No.3253 Banned Product
コンテスト
ユーザー vjudge1
提出日時 2025-11-20 17:35:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-11-20 17:35:50
合計ジャッジ時間 1,347 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code


t = int(input())
for x in range(t):
    a, b= map(int, input().split())
    if a==b:
        print(-1)
    elif a%b ==0:
        print(a)
    else:
        print(a-(b-int(a//b)))
0