Submission #68904388
Source Code Expand
#include <bits/stdc++.h>
#define int long long
using namespace std;
using pii = pair<int, int>;
template <typename T>
using vec = vector<T>;
constexpr int N = 2e5 + 5, mod = 998244353;
signed main()
{
ios::sync_with_stdio(false), cin.tie(0);
int n;
cin >> n;
vec<string> a(n + 1);
for (int i = 1; i <= n; i++) cin >> a[i];
int x;
string y;
cin >> x >> y;
if (a[x] == y) cout << "Yes";
else cout << "No";
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Misdelivery |
| User | wsy0655 |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 481 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3604 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 1 ms | 3420 KiB |
| random_02.txt | AC | 1 ms | 3484 KiB |
| random_03.txt | AC | 1 ms | 3532 KiB |
| random_04.txt | AC | 1 ms | 3328 KiB |
| random_05.txt | AC | 1 ms | 3604 KiB |
| random_06.txt | AC | 1 ms | 3524 KiB |
| random_07.txt | AC | 1 ms | 3460 KiB |
| random_08.txt | AC | 1 ms | 3376 KiB |
| sample_01.txt | AC | 1 ms | 3428 KiB |
| sample_02.txt | AC | 1 ms | 3524 KiB |
| sample_03.txt | AC | 1 ms | 3408 KiB |
| sample_04.txt | AC | 1 ms | 3468 KiB |