编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2304 #1001. 中心字母 Accepted 100 54 ms 372 K C++ 17 / 407 B hhg 2023-11-17 10:02:06
显示原始代码
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 2e6 + 5;

void solve() {
    string s;
    cin >> s;
    int n = s.size();
    cout << s[n / 2] << "\n";
}

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr), std::cout.tie(nullptr);

    int T;
    T = 1;
    while (T--) {
        solve();
    }

    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:5 ms
内存:276 KiB

输入文件(00_sample_01.in

atcoder

答案文件(00_sample_01.out

o

用户输出

o

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:5 ms
内存:308 KiB

输入文件(00_sample_02.in

a

答案文件(00_sample_02.out

a

用户输出

a

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:5 ms
内存:284 KiB

输入文件(01_test_01.in

gxgpuamkxkszhkbpphykinkezplvfjaqmop

答案文件(01_test_01.out

h

用户输出

h

系统信息

Exited with return code 0
测试点 #4
Accepted
得分:100
用时:6 ms
内存:352 KiB

输入文件(01_test_02.in

dotkrjzrimlvumuarenexcfyceb

答案文件(01_test_02.out

m

用户输出

m

系统信息

Exited with return code 0
测试点 #5
Accepted
得分:100
用时:7 ms
内存:240 KiB

输入文件(01_test_03.in

urgvjyospdhvuyfvtvnrdyluacvrayggwnpnzijdifyervjao

答案文件(01_test_03.out

a

用户输出

a

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:6 ms
内存:352 KiB

输入文件(01_test_04.in

lcgxovldqfzaorahdigyojknviaztpcmxlv

答案文件(01_test_04.out

i

用户输出

i

系统信息

Exited with return code 0
测试点 #7
Accepted
得分:100
用时:6 ms
内存:372 KiB

输入文件(01_test_05.in

vafhjphvshyfiqqtqbxjjmqngqjhwkcexecmdkmzakbzrkjwqdyux

答案文件(01_test_05.out

j

用户输出

j

系统信息

Exited with return code 0
测试点 #8
Accepted
得分:100
用时:6 ms
内存:272 KiB

输入文件(01_test_06.in

voossjoatryxm

答案文件(01_test_06.out

o

用户输出

o

系统信息

Exited with return code 0
测试点 #9
Accepted
得分:100
用时:4 ms
内存:352 KiB

输入文件(01_test_07.in

wxbwexnagmaygzyfnzpqftobtaotuayxmwvzllkujidhukzwzcltgqngguftuahalwvjwqncksizgzajkhyjujlkseszafzjmdt

答案文件(01_test_07.out

c

用户输出

c

系统信息

Exited with return code 0
测试点 #10
Accepted
得分:100
用时:4 ms
内存:272 KiB

输入文件(01_test_08.in

byldhylcgkyngvmhneqyjdugofklitxaoykfoqkzsznjyarkuprerivhubpehxmoydakklbdnfhfxamotubelzvbozjaraefmlo

答案文件(01_test_08.out

p

用户输出

p

系统信息

Exited with return code 0