Submission #62753966


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

#define all(v) v.begin(),v.end()
#define resort(v) sort(v.rbegin(),v.rend())
using ll = long long;
using ull = unsigned long long;
using vll=vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<ll,ll>;
using vp=vector<pair<ll, ll>>;

const ll inf=1ll<<60;
#define mod10 (ll)1e9+7
#define mod99 (ll)998244353
const double PI = acos(-1);

#define rep(i,n) for (ll i=0;i<n;++i)
#define per(i,n) for(ll i=n-1;i>=0;--i)
#define rep2(i,a,n) for (ll i=a;i<n;++i)
#define per2(i,a,n) for (ll i=n-1;i>=a;--i)


template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }

ll dx[] = {1, 0, -1, 0, -1, 1, -1, 1};
ll dy[] = {0, 1, 0, -1, -1, 1, 1, -1};

void solve() {
    string s, t; cin >> s >> t;
    string sick = "sick";
    string fine = "fine";
    if (s == sick && t == sick) cout << "1\n";
    else if (s == sick && t == fine) cout << "2\n";
    else if (s == fine && t == sick) cout << "3\n";
    else cout << "4\n";

}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int t=1;
    //cin >> t;
    while(t--)solve();
}

Submission Info

Submission Time
Task A - Poisonous Oyster
User ardRiriy
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1267 Byte
Status AC
Exec Time 1 ms
Memory 3512 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_all_00.txt, 01_all_01.txt, 01_all_02.txt, 01_all_03.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3480 KiB
00_sample_01.txt AC 1 ms 3412 KiB
01_all_00.txt AC 1 ms 3388 KiB
01_all_01.txt AC 1 ms 3512 KiB
01_all_02.txt AC 1 ms 3404 KiB
01_all_03.txt AC 1 ms 3468 KiB
02_random_00.txt AC 1 ms 3432 KiB
02_random_01.txt AC 1 ms 3472 KiB
02_random_02.txt AC 1 ms 3376 KiB
02_random_03.txt AC 1 ms 3448 KiB