Submission #62790910
Source Code Expand
Copy
#include<bits/stdc++.h>#define inf long long#define pii pair<int,int>#define p1 first#define p2 secondusing namespace std;const int maxn=1e5+5;int main(){//freopen("c.in","r",stdin);//freopen("c.out","w",stdout);string s1,s2;cin>>s1>>s2;if(s1=="sick"&&s2=="fine") cout<<2;else if(s1=="fine"&&s2=="sick") cout<<3;else if(s1=="sick"&&s2=="sick") cout<<1;else if(s1=="fine"&&s2=="fine") cout<<4;return 0;}
#include<bits/stdc++.h> #define inf long long #define pii pair<int,int> #define p1 first #define p2 second using namespace std; const int maxn=1e5+5; int main() { //freopen("c.in","r",stdin); //freopen("c.out","w",stdout); string s1,s2; cin>>s1>>s2; if(s1=="sick"&&s2=="fine") cout<<2; else if(s1=="fine"&&s2=="sick") cout<<3; else if(s1=="sick"&&s2=="sick") cout<<1; else if(s1=="fine"&&s2=="fine") cout<<4; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Poisonous Oyster |
User | sjc2 |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 449 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3648 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 3404 KB |
00_sample_01.txt | AC | 1 ms | 3648 KB |
01_all_00.txt | AC | 1 ms | 3484 KB |
01_all_01.txt | AC | 1 ms | 3536 KB |
01_all_02.txt | AC | 1 ms | 3536 KB |
01_all_03.txt | AC | 1 ms | 3444 KB |
02_random_00.txt | AC | 1 ms | 3440 KB |
02_random_01.txt | AC | 1 ms | 3484 KB |
02_random_02.txt | AC | 1 ms | 3604 KB |
02_random_03.txt | AC | 1 ms | 3476 KB |