結果
問題 |
No.2927 Reverse Polish Equation
|
ユーザー |
👑 |
提出日時 | 2024-10-14 16:23:12 |
言語 | cLay (20241019-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 3,437 ms |
コンパイル使用メモリ | 175,788 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2024-10-16 00:32:41 |
合計ジャッジ時間 | 9,669 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 13 WA * 30 |
ソースコード
ll@Q,@Y,A[Q],L;VS@S(Q);auto f=[&](ll x){L=0;for(auto&s:S)"0">s?A[L-2]+=A[L-1],--L:"m">s?A[L++]="X">s?stoi(s):x:"mi">s?(A[L-2]>?=A[L-1]),--L:(A[L-2]<?=A[L-1]),--L;return *A;};Wt(f(Q=bsearch_min[ll,x,0,Y+1](f(x)>=Y))==Y?Q:-1);