結果
問題 |
No.2753 鳩の巣原理
|
ユーザー |
![]() |
提出日時 | 2024-05-10 21:54:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,720 KB |
平均クエリ数 | 7.73 |
最終ジャッジ日時 | 2024-12-20 05:16:51 |
合計ジャッジ時間 | 5,998 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 23 |
ソースコード
# a[i] = i n = int(input()) ub = n # NG lb = 0 # OK while ub - lb > 1: t = (ub + lb) // 2 print(f"? {t}") x = int(input()) if x == t: lb = t else: ub = t print("Yes",lb,lb+1)