Submission #69823074
Source Code Expand
// Problem: 'A - OS Versions' // Contest: 'AtCoder - AtCoder Beginner Contest 426' // URL: 'https://atcoder.jp/contests/abc426/tasks/abc426_a' // Memory Limit: 1024 MB // Time Limit: 2000 ms // // Powered by competitive-companion.el (https://github.com/luishgh/competitive-companion.el) #include <bits/stdc++.h> using namespace std; #define _ ios_base::sync_with_stdio(0);cin.tie(0); #define endl '\n' typedef long long ll; const int INF = 0x3f3f3f3f; const ll LINF = 0x3f3f3f3f3f3f3f3fll; int main() {_; map<string, int> m; m["Ocelot"] = 0; m["Serval"] = 1; m["Lynx"] = 2; string a, b; cin >> a >> b; if (m[a] >= m[b]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - OS Versions |
User | luishgh |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 746 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 |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 3412 KiB |
sample_02.txt | AC | 1 ms | 3520 KiB |
sample_03.txt | AC | 1 ms | 3472 KiB |
test_01.txt | AC | 1 ms | 3416 KiB |
test_02.txt | AC | 1 ms | 3396 KiB |
test_03.txt | AC | 1 ms | 3440 KiB |
test_04.txt | AC | 1 ms | 3532 KiB |
test_05.txt | AC | 1 ms | 3328 KiB |
test_06.txt | AC | 1 ms | 3400 KiB |
test_07.txt | AC | 1 ms | 3604 KiB |
test_08.txt | AC | 1 ms | 3328 KiB |
test_09.txt | AC | 1 ms | 3388 KiB |