Submission #32373266
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
template <typename T>
inline void read(T &a) {
char c;for (c = getchar(); (c < '0' || c > '9') && c != '-'; c = getchar());bool f = c == '-';T x = f ? 0 : (c ^ '0');for (c = getchar(); c >= '0' && c <= '9'; c = getchar()) {x = x * 10 + (c ^ '0');}a = f ? -x : x;
}
template <typename T, typename ...Argv>
inline void read(T &a, Argv &...argv) {
read(a), read(argv...);
}
int r, c;
int a[3][3];
signed main() {
read(r, c);
for (int i = 1; i <= 2; ++i) {
for (int j = 1; j <= 2; ++j) {
read(a[i][j]);
}
}
printf("%d\n", a[r][c]);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - You should output ARC, though this is ABC. |
| User | rsdbk_husky_undo |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 625 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 3760 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, test_10.txt, test_11.txt, test_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 7 ms | 3744 KiB |
| sample_02.txt | AC | 2 ms | 3636 KiB |
| sample_03.txt | AC | 2 ms | 3676 KiB |
| test_01.txt | AC | 2 ms | 3576 KiB |
| test_02.txt | AC | 2 ms | 3640 KiB |
| test_03.txt | AC | 2 ms | 3520 KiB |
| test_04.txt | AC | 2 ms | 3676 KiB |
| test_05.txt | AC | 2 ms | 3736 KiB |
| test_06.txt | AC | 2 ms | 3640 KiB |
| test_07.txt | AC | 2 ms | 3644 KiB |
| test_08.txt | AC | 2 ms | 3644 KiB |
| test_09.txt | AC | 2 ms | 3760 KiB |
| test_10.txt | AC | 2 ms | 3576 KiB |
| test_11.txt | AC | 2 ms | 3684 KiB |
| test_12.txt | AC | 1 ms | 3552 KiB |