Submission #1245275
Source Code Expand
#include<iostream> #include<cstdio> #include<string> #include<vector> #include<algorithm> #include<queue> #include<set> #include<unordered_map> #include<string.h> #include<stack> #include<functional> using namespace std; signed main() { int a; cin >> a; for (int b = 0; b < a; b++) { int c, d; cin >> c >> d; c--; if (c & 1) { cout << (c + 1) * 127 - d << endl; } else { cout << c * 127 + d << endl; } } }
Submission Info
Submission Time | |
---|---|
Task | C - Cookie Breeding Machine |
User | naoki2016 |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 452 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample.txt | AC | 1 ms | 256 KB |
random_00.txt | AC | 3 ms | 256 KB |
random_01.txt | AC | 3 ms | 256 KB |
random_02.txt | AC | 3 ms | 256 KB |
random_03.txt | AC | 3 ms | 256 KB |
random_04.txt | AC | 3 ms | 256 KB |