QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#672697#2873. Extreme ProblemFolity#AC ✓0ms3816kbC++20856b2024-10-24 18:11:102024-10-24 18:11:11

Judging History

你现在查看的是最新测评结果

  • [2024-10-24 18:11:11]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3816kb
  • [2024-10-24 18:11:10]
  • 提交

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';
}

Details

Tip: Click on the bar to expand more detailed information

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