QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#672697 | #2873. Extreme Problem | Folity# | AC ✓ | 0ms | 3816kb | C++20 | 856b | 2024-10-24 18:11:10 | 2024-10-24 18:11:11 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
string s[8]={
"x 2 ^ y 2 ^ +",
"0",
"x 4 ^ x 2 ^ -2 * + y 2 ^ +",
"x 4 ^ x 2 ^ - x 2 ^ 7 * 5 8 * - * y 2 ^ +",
"x 4 ^ x 2 ^ -2 * + y 2 ^ + -1 *",
"x 4 ^ x 2 ^ - x 2 ^ 7 * 5 8 * - * y 2 ^ + -1 *",
"x 5 ^ 3 * 5 5 * x 3 ^ * - 3 4 * 5 * x * + y 5 ^ 3 * 5 5 * y 3 ^ * - 3 4 * 5 * y * + +",
//"x 3 ^ x - 9 2 + x 2 ^ * 9 8 + 4 * + * y 3 ^ y - 9 2 + y 2 ^ * 9 8 + 4 * + * +"
"x 3 ^ x - x 4 ^ 9 2 * x 2 ^ * - 3 5 * 5 * + * y 3 ^ y - y 4 ^ 9 2 * y 2 ^ * - 3 5 * 5 * + * +"
};
int main(){
string s1,s2,s3;
getline(cin,s1);
getline(cin,s2);
getline(cin,s3);
int stat=0;
if(s1.back()=='s')stat|=4;
if(s2.back()=='s')stat|=2;
if(s3.back()=='s')stat|=1;
cout<<s[stat]<<'\n';
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3800kb
input:
Multiple local maxima: No Multiple local minima: No Plateaus: No
output:
x 2 ^ y 2 ^ +
result:
ok OK
Test #2:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
Multiple local maxima: No Multiple local minima: No Plateaus: Yes
output:
0
result:
ok OK
Test #3:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
Multiple local maxima: No Multiple local minima: Yes Plateaus: No
output:
x 4 ^ x 2 ^ -2 * + y 2 ^ +
result:
ok OK
Test #4:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
Multiple local maxima: No Multiple local minima: Yes Plateaus: Yes
output:
x 4 ^ x 2 ^ - x 2 ^ 7 * 5 8 * - * y 2 ^ +
result:
ok OK
Test #5:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
Multiple local maxima: Yes Multiple local minima: No Plateaus: No
output:
x 4 ^ x 2 ^ -2 * + y 2 ^ + -1 *
result:
ok OK
Test #6:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
Multiple local maxima: Yes Multiple local minima: No Plateaus: Yes
output:
x 4 ^ x 2 ^ - x 2 ^ 7 * 5 8 * - * y 2 ^ + -1 *
result:
ok OK
Test #7:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
Multiple local maxima: Yes Multiple local minima: Yes Plateaus: No
output:
x 5 ^ 3 * 5 5 * x 3 ^ * - 3 4 * 5 * x * + y 5 ^ 3 * 5 5 * y 3 ^ * - 3 4 * 5 * y * + +
result:
ok OK
Test #8:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
Multiple local maxima: Yes Multiple local minima: Yes Plateaus: Yes
output:
x 3 ^ x - x 4 ^ 9 2 * x 2 ^ * - 3 5 * 5 * + * y 3 ^ y - y 4 ^ 9 2 * y 2 ^ * - 3 5 * 5 * + * +
result:
ok OK