Submission #68969439
Source Code Expand
// Author: Ruhan Habib (ruhan.habib39)
#ifdef DEBUG
#include "debug.hpp"
#else
#include "bits/stdc++.h"
#define dbg(...)
#endif
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define all(a) begin(a), end(a)
#define sz(a) int(size(a))
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int n; cin >> n;
vector<string> names(n);
for (auto& name : names) cin >> name;
int x; string y; cin >> x >> y;
bool res = names[x-1] == y;
cout << (res ? "Yes\n" : "No\n");
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Misdelivery |
| User | ruhanhabib39 |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 597 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3620 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 | 3572 KiB |
| random_02.txt | AC | 1 ms | 3428 KiB |
| random_03.txt | AC | 1 ms | 3432 KiB |
| random_04.txt | AC | 1 ms | 3400 KiB |
| random_05.txt | AC | 1 ms | 3488 KiB |
| random_06.txt | AC | 1 ms | 3504 KiB |
| random_07.txt | AC | 1 ms | 3508 KiB |
| random_08.txt | AC | 1 ms | 3424 KiB |
| sample_01.txt | AC | 1 ms | 3444 KiB |
| sample_02.txt | AC | 1 ms | 3500 KiB |
| sample_03.txt | AC | 1 ms | 3620 KiB |
| sample_04.txt | AC | 1 ms | 3496 KiB |