Submission #62755089
Source Code Expand
Copy
#include<bits/stdc++.h>#define int long longusing namespace std;string s1,s2;signed main(){cin>>s1>>s2;bool p=(s1!="fine"),q=(s2!="fine");if(p&&q)cout<<1;else if(p)cout<<2;else if(q)cout<<3;else cout<<4;return 0;}
#include<bits/stdc++.h> #define int long long using namespace std; string s1,s2; signed main(){ cin>>s1>>s2; bool p=(s1!="fine"),q=(s2!="fine"); if(p&&q)cout<<1; else if(p)cout<<2; else if(q)cout<<3; else cout<<4; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Poisonous Oyster |
User | lujinming2010 |
Language | C++ 17 (gcc 12.2) |
Score | 100 |
Code Size | 244 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 3644 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 | 3468 KB |
00_sample_01.txt | AC | 1 ms | 3528 KB |
01_all_00.txt | AC | 1 ms | 3416 KB |
01_all_01.txt | AC | 1 ms | 3496 KB |
01_all_02.txt | AC | 1 ms | 3444 KB |
01_all_03.txt | AC | 1 ms | 3432 KB |
02_random_00.txt | AC | 1 ms | 3368 KB |
02_random_01.txt | AC | 2 ms | 3448 KB |
02_random_02.txt | AC | 1 ms | 3644 KB |
02_random_03.txt | AC | 1 ms | 3484 KB |