QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#233761#7070. Isomerismstcmuyi#WA 51ms3452kbC++201.1kb2023-10-31 22:16:582023-10-31 22:16:59

Judging History

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

  • [2023-10-31 22:16:59]
  • 评测
  • 测评结果:WA
  • 用时:51ms
  • 内存:3452kb
  • [2023-10-31 22:16:58]
  • 提交

answer

#include <bits/stdc++.h>
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define i64 long long
#define int long long
#define endl '\n'
#define lb(x) ((x) & (-x))
using namespace std;
const i64 mod = 1e9+7;
const int maxn = 2e6+10;

signed main()
{
    IOS;
    int t;
    cin >> t;
    while(t--)
    {
        string r1,r2,r3,r4;
        cin >> r1 >> r2 >> r3 >> r4;
        if(r1 == r3 || r2 == r4) cout << "None" << endl;
        else if(r1 == r2 || r3 == r4) cout << "Cis" << endl;
        else if(r1 == r4 || r2 == r3) cout << "Trans" << endl;
        else
        {
            map<string,int> mp;
            mp["-F"] = 1;
            mp["-Cl"] = 2;
            mp["-Br"] = 3;
            mp["-I"] = 4;
            mp["-CH3"] = 5;
            mp["-CH2CH3"] = 6;
            mp["-CH2CH2CH3"] = 7;
            mp["-H"] = 8;
            if(max(mp[r1],mp[r2]) < min(mp[r3],mp[r4]) || max(mp[r3],mp[r4]) < min(mp[r1],mp[r2])) cout << "Zasamman" << endl;
            else cout << "Entgegen" << endl;
        }
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3448kb

input:

2
-H -H -H -Cl
-F -F -Br -Cl

output:

None
Cis

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 51ms
memory: 3452kb

input:

100000
-Br -CH3 -H -CH2CH2CH3
-CH3 -I -Cl -Cl
-CH3 -Br -CH2CH3 -CH3
-H -CH3 -Cl -CH3
-H -F -CH2CH3 -CH2CH2CH3
-Br -Br -Cl -CH2CH2CH3
-F -Cl -H -CH2CH2CH3
-CH2CH2CH3 -CH3 -CH3 -H
-CH2CH2CH3 -CH3 -CH2CH2CH3 -Br
-CH3 -Cl -CH2CH2CH3 -CH3
-H -CH2CH3 -I -I
-CH3 -Cl -Br -I
-I -Cl -H -F
-CH2CH2CH3 -Cl -Br -...

output:

Zasamman
Cis
Trans
None
Entgegen
Cis
Zasamman
Trans
None
Trans
Cis
Entgegen
Entgegen
Cis
Cis
Entgegen
Trans
None
Cis
None
Cis
None
None
Zasamman
Cis
None
Entgegen
Entgegen
None
None
Cis
Trans
Zasamman
Entgegen
Zasamman
Trans
Entgegen
None
Zasamman
Trans
Cis
Trans
Zasamman
Trans
None
Zasamman
None
Tr...

result:

wrong answer 51st lines differ - expected: 'Zasamman', found: 'Entgegen'