Submission #24486210
Source Code Expand
// {{{
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using vi = vector<int>;
using pii = pair<int, int>;
#define sz(x) (int)((x).size())
#define all(x) (x).begin(), (x).end()
#define clr(a, b) memset(a, b, sizeof(a))
#define debug(x...)
#define debug_arr(x...)
#ifdef LOCAL
#include "prettyprint.hpp"
#endif
// }}}
int main()
{
#ifdef LOCAL
freopen("in", "r", stdin);
// freopen("out", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(0);
set<string> st;
for (int i = 0; i < 4; i++)
{
string s;
cin >> s;
st.insert(s);
}
if (st.find("H") == st.end())
{
cout << "No" << endl;
return 0;
}
if (st.find("2B") == st.end())
{
cout << "No" << endl;
return 0;
}
if (st.find("3B") == st.end())
{
cout << "No" << endl;
return 0;
}
if (st.find("HR") == st.end())
{
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Cycle Hit |
| User | mickeyandkaka |
| Language | C++ (GCC 9.2.1) |
| Score | 200 |
| Code Size | 1091 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3656 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 6 ms | 3600 KiB |
| 001.txt | AC | 2 ms | 3512 KiB |
| 002.txt | AC | 2 ms | 3656 KiB |
| 003.txt | AC | 2 ms | 3608 KiB |
| 004.txt | AC | 2 ms | 3560 KiB |
| 005.txt | AC | 3 ms | 3612 KiB |
| 006.txt | AC | 2 ms | 3580 KiB |
| example0.txt | AC | 2 ms | 3516 KiB |
| example1.txt | AC | 2 ms | 3612 KiB |