結果
問題 |
No.3011 あ、俺こいつの役やりたい!
|
ユーザー |
![]() |
提出日時 | 2025-01-25 18:54:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 83 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 27,296 KB |
平均クエリ数 | 12.45 |
最終ジャッジ日時 | 2025-01-26 00:01:49 |
合計ジャッジ時間 | 5,449 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge13 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 |
ソースコード
import sys from sys import stdin ok = 0 ng = 2*10**9 while ng - ok > 1: mid = (ok + ng) // 2 print(mid,end="\n",flush=True) r = sys.stdin.readline().rstrip() r = int(r) if r == 1: ok = mid exit() elif r == 0: ng = mid else: exit()