Submission #2127355
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep2(i,n) for(int i=1;i<=(int)(n);i++) #define rep3(i,n) for(int i=0;i<=(int)(n);i++) #define REP(i,m,n) for(int i=m;i<(int)(n);i++) #define INF 1e9 // #define INFLL 4e18 // #define MOD (1e9)+7 #define MP make_pair typedef long long int ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; // a 0x61 z 0x7a 0 0x30 //------------------------------------------------------ int main() { int group[13]; group[0] = 0; group[1] = 1; group[2] = 3; group[3] = 1; group[4] = 2; group[5] = 1; group[6] = 2; group[7] = 1; group[8] = 1; group[9] = 2; group[10] = 1; group[11] = 2; group[12] = 1; int x, y; cin >> x >> y; cout << (group[x] == group[y] ? "Yes" : "No") << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Grouping |
User | stoq |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 903 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 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 | AC | 1 ms | 256 KB |