编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2225 #1001. 中心字母 Accepted 100 55 ms 388 K C++ 17 / 462 B BlessingC 2023-11-17 0:55:59
显示原始代码
#include <bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10, P1 = 13331, P2 = 131;

typedef unsigned long long ULL;
typedef pair<int, int> PII;

int n, q, m, k;

void solve() {
    string s;
    cin >> s;
    // 3 -> 1, 101 -> 50
    cout << s[s.size() / 2] << endl;
}

int main() {
    // cin.tie(0);cout.tie(0);ios::sync_with_stdio(0);
    int _ = 1;
    // cin >> _;
    while (_--) solve();
    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:6 ms
内存:256 KiB

输入文件(00_sample_01.in

atcoder

答案文件(00_sample_01.out

o

用户输出

o

系统信息

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

输入文件(00_sample_02.in

a

答案文件(00_sample_02.out

a

用户输出

a

系统信息

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

输入文件(01_test_01.in

gxgpuamkxkszhkbpphykinkezplvfjaqmop

答案文件(01_test_01.out

h

用户输出

h

系统信息

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

输入文件(01_test_02.in

dotkrjzrimlvumuarenexcfyceb

答案文件(01_test_02.out

m

用户输出

m

系统信息

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

输入文件(01_test_03.in

urgvjyospdhvuyfvtvnrdyluacvrayggwnpnzijdifyervjao

答案文件(01_test_03.out

a

用户输出

a

系统信息

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

输入文件(01_test_04.in

lcgxovldqfzaorahdigyojknviaztpcmxlv

答案文件(01_test_04.out

i

用户输出

i

系统信息

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

输入文件(01_test_05.in

vafhjphvshyfiqqtqbxjjmqngqjhwkcexecmdkmzakbzrkjwqdyux

答案文件(01_test_05.out

j

用户输出

j

系统信息

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

输入文件(01_test_06.in

voossjoatryxm

答案文件(01_test_06.out

o

用户输出

o

系统信息

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

输入文件(01_test_07.in

wxbwexnagmaygzyfnzpqftobtaotuayxmwvzllkujidhukzwzcltgqngguftuahalwvjwqncksizgzajkhyjujlkseszafzjmdt

答案文件(01_test_07.out

c

用户输出

c

系统信息

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

输入文件(01_test_08.in

byldhylcgkyngvmhneqyjdugofklitxaoykfoqkzsznjyarkuprerivhubpehxmoydakklbdnfhfxamotubelzvbozjaraefmlo

答案文件(01_test_08.out

p

用户输出

p

系统信息

Exited with return code 0