编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3073 #1001. 中心字母 Accepted 100 46 ms 384 K C / 378 B t330026120 2023-11-23 0:37:46
显示原始代码
#include <stdio.h>
#include <string.h>
char findmiddle(char* str);
int main(int argc, const char* argv[]) {
    char S[99];
    char middle;
    scanf("%s", S);

    middle = findmiddle(S);
    printf("%c\n", middle);

    return 0;
}
char findmiddle(char* str) {
    int length = strlen(str);
    int middleindex = length / 2;
    return str[middleindex];
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:4 ms
内存:224 KiB

输入文件(00_sample_01.in

atcoder

答案文件(00_sample_01.out

o

用户输出

o

系统信息

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

输入文件(00_sample_02.in

a

答案文件(00_sample_02.out

a

用户输出

a

系统信息

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

输入文件(01_test_01.in

gxgpuamkxkszhkbpphykinkezplvfjaqmop

答案文件(01_test_01.out

h

用户输出

h

系统信息

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

输入文件(01_test_02.in

dotkrjzrimlvumuarenexcfyceb

答案文件(01_test_02.out

m

用户输出

m

系统信息

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

输入文件(01_test_03.in

urgvjyospdhvuyfvtvnrdyluacvrayggwnpnzijdifyervjao

答案文件(01_test_03.out

a

用户输出

a

系统信息

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

输入文件(01_test_04.in

lcgxovldqfzaorahdigyojknviaztpcmxlv

答案文件(01_test_04.out

i

用户输出

i

系统信息

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

输入文件(01_test_05.in

vafhjphvshyfiqqtqbxjjmqngqjhwkcexecmdkmzakbzrkjwqdyux

答案文件(01_test_05.out

j

用户输出

j

系统信息

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

输入文件(01_test_06.in

voossjoatryxm

答案文件(01_test_06.out

o

用户输出

o

系统信息

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

输入文件(01_test_07.in

wxbwexnagmaygzyfnzpqftobtaotuayxmwvzllkujidhukzwzcltgqngguftuahalwvjwqncksizgzajkhyjujlkseszafzjmdt

答案文件(01_test_07.out

c

用户输出

c

系统信息

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

输入文件(01_test_08.in

byldhylcgkyngvmhneqyjdugofklitxaoykfoqkzsznjyarkuprerivhubpehxmoydakklbdnfhfxamotubelzvbozjaraefmlo

答案文件(01_test_08.out

p

用户输出

p

系统信息

Exited with return code 0