結果

問題 No.3519 A/B問題
コンテスト
ユーザー 👑 amentorimaru
提出日時 2026-05-01 21:29:33
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 494 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 129 ms
コンパイル使用メモリ 85,376 KB
実行使用メモリ 176,928 KB
最終ジャッジ日時 2026-05-01 21:29:56
合計ジャッジ時間 6,916 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
import math
input = sys.stdin.readline
def read_values(): return map(int, input().split())
def read_index(): return map(lambda x: int(x) - 1, input().split())
def read_list(): return list(read_values())
from fractions import Fraction

def main():
  a=1
  mx=10**100
  while a<mx:
    a*=2
  a//=2
  ans=0
  while a>0:
    print("!",1,a)
    c=input()
    if c[0]==">" or c[0]=='=':
      ans+=a
    a//=2
  print("!", ans)
    
    
      
if __name__ == "__main__":
  main()

    

0