C
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- takezoh
- まろ
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- @tyottyoworks
- ___shanon
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
22
1
2
int main()
3
{
4
int S_m, S_t, S_v, S_d;
5
char dp[500][500];
6
char nucleotide;
7
int i, m;
8
scanf("%d %d %d %d", &S_m, &S_t, &S_v, &S_d);
9
for (i=0; i<500; i++){
10
scanf("%c", &nucleotide);
11
if (nucleotide == '\n'){
12
m = i + 1;
13
break;
14
}
15
dp[i+1][0] = nucleotide;
16
}
17
for (i=0; i<=m; i++){
18
printf("%c", dp[i+1][0]);
19
}
20
return 0;
21
}
22
$ gcc prog.c -Wall -Wextra -std=gnu11
Stdin
1 2 3 4 abcdefg
Start
abcdefg
0
Finish