Submission #34368718
Source Code Expand
#include"bits/stdc++.h"
using namespace std;
int main() {
// freopen("A.in" , "r" , stdin);
// freopen("A.out" , "w" , stdout);
string s;
cin >> s;
int n = s.size();
cout << s[n/2] << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Middle Letter |
| User | ZzZZCHS |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 249 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3572 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 8 ms | 3448 KiB |
| 00_sample_02.txt | AC | 2 ms | 3496 KiB |
| 01_test_01.txt | AC | 3 ms | 3540 KiB |
| 01_test_02.txt | AC | 2 ms | 3380 KiB |
| 01_test_03.txt | AC | 2 ms | 3564 KiB |
| 01_test_04.txt | AC | 2 ms | 3552 KiB |
| 01_test_05.txt | AC | 2 ms | 3380 KiB |
| 01_test_06.txt | AC | 2 ms | 3560 KiB |
| 01_test_07.txt | AC | 2 ms | 3572 KiB |
| 01_test_08.txt | AC | 2 ms | 3452 KiB |