結果

問題 No.1656 Recuperation
コンテスト
ユーザー harurun
提出日時 2021-08-02 19:23:15
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 146 ms / 2,000 ms
+ 281µs
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 67 ms
コンパイル使用メモリ 81,468 KB
実行使用メモリ 62,872 KB
最終ジャッジ日時 2026-09-27 06:53:50
合計ジャッジ時間 1,790 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from time import sleep
from sys import stdin
pin=stdin.readline
t=int(pin())
for _ in[0]*t:
  a,b=map(int,pin().split())
  ans=0
  now=0
  for _ in[0]*b:
    now+=a
    ans+=1
  while now>0:
    now-=1
    ans+=1
  print(ans)
sleep(0.1)
0