結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー glarand
提出日時 2025-01-25 13:02:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 69,376 KB
平均クエリ数 12.45
最終ジャッジ日時 2025-01-25 22:31:00
合計ジャッジ時間 5,053 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

import os
MyPC = os.path.basename(__file__) != "Main.py"
if MyPC:
    from icecream import ic
    ic.disable()
else:
    def ic(*args):
        return None
ic.enable() if MyPC else None
def main():
    x = 10**9
    while True:
        print(x)
        r = int(input())

        if abs(r) == 1:
            exit()
        elif r == 0:
            x //= 2
        
if __name__ == "__main__":
    main()
0