# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
641357 | andrei_boaca | Homework (CEOI22_homework) | C++14 | 284 ms | 213796 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
stack<int> stiva;
vector<int> nr,poz;
string s;
bool possible(string op,int cnt1,int cnt2, pii p1, pii p2,int x)
{
if(op=="max")
{
if(p1.first+p2.first<=x)
{
int val=cnt1+p2.second;
if(x<=val)
return 1;
val=cnt2+p1.second;
if(x<=val)
return 1;
}
return 0;
}
else
{
int have=cnt1-p1.second+1;
have+=cnt2-p2.second+1;
if(cnt1+cnt2-x+1>=have)
{
int val=cnt1+cnt2-p2.first+1;
if(cnt1+cnt2-val+1<=x)
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |