結果
問題 | No.2962 Sum Bomb Bomber |
ユーザー | nouka28 |
提出日時 | 2024-11-16 16:56:32 |
言語 | C++23 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,107 bytes |
コンパイル時間 | 5,740 ms |
コンパイル使用メモリ | 309,032 KB |
実行使用メモリ | 25,836 KB |
平均クエリ数 | 190.26 |
最終ジャッジ日時 | 2024-11-16 16:56:51 |
合計ジャッジ時間 | 15,866 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 82 ms
24,568 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 104 ms
24,824 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | AC | 75 ms
24,824 KB |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | WA | - |
testcase_51 | AC | 72 ms
24,812 KB |
testcase_52 | WA | - |
testcase_53 | WA | - |
testcase_54 | WA | - |
testcase_55 | WA | - |
testcase_56 | WA | - |
testcase_57 | WA | - |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | WA | - |
testcase_63 | WA | - |
testcase_64 | WA | - |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:34:30: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow] 34 | int min_cost=1e18; | ^~~~ main.cpp:64:30: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow] 64 | int min_cost=1e18; | ^~~~
ソースコード
#include<bits/stdc++.h> using namespace std; #include<atcoder/all> using namespace atcoder; using mint=atcoder::modint998244353; #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") signed main(){ int N;cin>>N; int x=-1,y=-1; { int l=-1e8,r=1e8; while(r-l>2){ int nl=(2*l+r)/3,nr=(l+2*r)/3; cout<<1<<" "<<nl<<" "<<0<<endl; int retl;cin>>retl; cout<<1<<" "<<nr<<" "<<0<<endl; int retr;cin>>retr; if(retl<retr){ r=nr; }else{ l=nl; } } int min_cost=1e18; for(int i=l;i<=r;i++){ cout<<1<<" "<<l<<" "<<0<<endl; int ret;cin>>ret; if(min_cost>ret){ min_cost=ret; x=i; } } } { int l=-1e8,r=1e8; while(r-l>2){ int nl=(2*l+r)/3,nr=(l+2*r)/3; cout<<1<<" "<<0<<" "<<nl<<endl; int retl;cin>>retl; cout<<1<<" "<<0<<" "<<nr<<endl; int retr;cin>>retr; if(retl<retr){ r=nr; }else{ l=nl; } } int min_cost=1e18; for(int i=l;i<=r;i++){ cout<<1<<" "<<0<<" "<<l<<endl; int ret;cin>>ret; if(min_cost>ret){ min_cost=ret; y=i; } } } cout<<2<<" "<<x<<" "<<y<<endl; }