結果
| 問題 |
No.2978 Lexicographically Smallest and Largest Subarray
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-02 16:02:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 84,032 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-12-02 16:02:51 |
| 合計ジャッジ時間 | 11,977 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 57 |
ソースコード
t=int;i=input();N,Q=map(t,i().split());s=[];l=[];k=lambda x,y:print("?",x,N,y,N)
for i in range(0,N,2):
k(p:=i+1,q:=i+2)
if t(i()):
l.append(q);s.append(p)
else:
l.append(p);s.append(q)
m=1;a=1;
for i in s:
k(m,i)
if 1-t(i()):sm=i
for i in l:
k(a,i)
if t(i):a=i
print("!",s,s,a,N)