Submission #1857253
Source Code Expand
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <map> #include <stack> #include <cmath> #include <queue> #include <numeric> int main() { std::vector<int> a(7), b(4), c(2); int n, m; std::cin >> n >> m; if (n == 2 || m == 2) { std::cout << "No" << std::endl; return 0; } if (n > m) { std::swap(n, m); } if (n == 4) { if (m == 6 || m == 9 || m == 11) { std::cout << "Yes" << std::endl; return 0; } else { std::cout << "No" << std::endl; } } else if (n == 6) { if (m == 9 || m == 11) { std::cout << "Yes" << std::endl; return 0; } else { std::cout << "No" << std::endl; } } else if (n == 9) { if (m == 11) { std::cout << "Yes" << std::endl; } else { std::cout << "No" << std::endl; } } else { std::cout << "Yes" << std::endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Grouping |
User | Kampachi |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 915 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt |
All | 0_00.txt, 0_01.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 1 ms | 256 KB |
0_01.txt | AC | 1 ms | 256 KB |
1_00.txt | AC | 1 ms | 256 KB |
1_01.txt | AC | 1 ms | 256 KB |
1_02.txt | AC | 1 ms | 256 KB |
1_03.txt | AC | 1 ms | 256 KB |
1_04.txt | WA | 1 ms | 256 KB |