AtCoder Beginner Contest 002

Submission #4602085

Source codeソースコード

#include <stdio.h>

#define max_len_target_string 30

int main (void)
{
	/* variables for main process */
	char buf_target_string[max_len_target_string];
	int  buf_rtvl_int;
	int  itr_elem;

	// STEP.01
	// read out the target integers
	buf_rtvl_int = scanf ("%s", &buf_target_string);

	// STEP.02
	// output the read string without designated characters
	for (itr_elem = 0; itr_elem < strlen (buf_target_string); itr_elem++)
	{
		if ( buf_target_string[itr_elem] == 'a' ) { continue; }
		if ( buf_target_string[itr_elem] == 'i' ) { continue; }
		if ( buf_target_string[itr_elem] == 'u' ) { continue; }
		if ( buf_target_string[itr_elem] == 'e' ) { continue; }
		if ( buf_target_string[itr_elem] == 'o' ) { continue; }

		printf ("%c", buf_target_string[itr_elem]);
	}
	printf ("\n");

	// STEP.END
	return 0;
}

Submission

Task問題 B - 罠
User nameユーザ名 DSCF_1224
Created time投稿日時
Language言語 C (GCC 5.4.1)
Status状態 AC
Score得点 100
Source lengthソースコード長 843 Byte
File nameファイル名
Exec time実行時間 1 ms
Memory usageメモリ使用量 128 KB

Compiler messageコンパイルメッセージ

./Main.c: In function ‘main’:
./Main.c:14:24: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[30]’ [-Wformat=]
buf_rtvl_int = scanf ("%s", &buf_target_string);
^
./Main.c:18:32: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
for (itr_elem = 0; itr_elem < strlen (buf_target_string); itr_elem++)
^
./Main.c:18:32: warning: incompatible implicit declaration of built-in function ‘strlen’
./Main.c:18:32: note: include ‘<string.h>’ or provide a declaration of ‘strlen’

Test case

Set

Set name Score得点 / Max score Cases
all 100 / 100 00_sample_01.txt,00_sample_02.txt,00_sample_03.txt,00_sample_04.txt,test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt,test_abcdefghijklmnopqrstuvwxyz.txt,test_aeuuoeuuooaoikuaouoo.txt,test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt,test_aioeunu.txt,test_aqahahuqugironiyog.txt,test_ay.txt,test_c.txt,test_cizuci.txt,test_clrhrnbnxmhvvrykgpvsjpylvns.txt,test_clwxebedrzlfbey.txt,test_dfiousakzbw.txt,test_di.txt,test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt,test_eugfblf.txt,test_faumfxzsfpgz.txt,test_glpfsryzkcgbkmytzz.txt,test_hzkx.txt,test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt,test_iyenewigoronadomeni.txt,test_joda.txt,test_k.txt,test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt,test_klaimqrlgrxzgsqkenng.txt,test_mgjpfrkthffctppiueeeouiioeieoa.txt,test_mhfrnzpxkmxjzvmqhwxg.txt,test_mm.txt,test_mvgvrpyghdszgfvznv.txt,test_nu.txt,test_oaiiioieoeiieiuooiueaouuuiw.txt,test_oaqii.txt,test_oit.txt,test_omimujomevadimadom.txt,test_oooooooooolooooooooooooooooooo.txt,test_ooqo.txt,test_ouioiaeiuaoaeiieuuiooeeqo.txt,test_ow.txt,test_pifofawezojisasotuj.txt,test_pn.txt,test_qgqsghgjczftdmvdtrztjdwhcds.txt,test_rxifvbybdsqasoyjdskqwhlstx.txt,test_s.txt,test_taroakpyzmgkbhtklwfbk.txt,test_tkttwgnpjlrkcmwkkcfkjtyb.txt,test_uauoyouaaeoaoeooa.txt,test_uphtuhurtdkmcidxfjtgqtdujblvht.txt,test_uqzghmkf.txt,test_usetumukiwukugekidefupalumimec.txt,test_uueeuoeuviuiieuioeeauuuieeuiee.txt,test_uuueueouaouuiuniaoaaeuaoaa.txt,test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt,test_vokicozoyatekebagajiceb.txt,test_xlsphqfmqrtrtvmpvbgnkr.txt,test_yepelilemapakonarugupabepisoha.txt,test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt AC
00_sample_02.txt AC
00_sample_03.txt AC
00_sample_04.txt AC
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt AC
test_abcdefghijklmnopqrstuvwxyz.txt AC
test_aeuuoeuuooaoikuaouoo.txt AC
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt AC
test_aioeunu.txt AC
test_aqahahuqugironiyog.txt AC
test_ay.txt AC
test_c.txt AC
test_cizuci.txt AC
test_clrhrnbnxmhvvrykgpvsjpylvns.txt AC
test_clwxebedrzlfbey.txt AC
test_dfiousakzbw.txt AC
test_di.txt AC
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt AC
test_eugfblf.txt AC
test_faumfxzsfpgz.txt AC
test_glpfsryzkcgbkmytzz.txt AC
test_hzkx.txt AC
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt AC 1 ms 128 KB
test_iyenewigoronadomeni.txt AC
test_joda.txt AC 1 ms 128 KB
test_k.txt AC 1 ms 128 KB
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt AC
test_klaimqrlgrxzgsqkenng.txt AC
test_mgjpfrkthffctppiueeeouiioeieoa.txt AC
test_mhfrnzpxkmxjzvmqhwxg.txt AC
test_mm.txt AC
test_mvgvrpyghdszgfvznv.txt AC
test_nu.txt AC
test_oaiiioieoeiieiuooiueaouuuiw.txt AC
test_oaqii.txt AC
test_oit.txt AC
test_omimujomevadimadom.txt AC 1 ms 128 KB
test_oooooooooolooooooooooooooooooo.txt AC
test_ooqo.txt AC
test_ouioiaeiuaoaeiieuuiooeeqo.txt AC
test_ow.txt AC 1 ms 128 KB
test_pifofawezojisasotuj.txt AC
test_pn.txt AC
test_qgqsghgjczftdmvdtrztjdwhcds.txt AC
test_rxifvbybdsqasoyjdskqwhlstx.txt AC
test_s.txt AC
test_taroakpyzmgkbhtklwfbk.txt AC
test_tkttwgnpjlrkcmwkkcfkjtyb.txt AC
test_uauoyouaaeoaoeooa.txt AC
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt AC
test_uqzghmkf.txt AC
test_usetumukiwukugekidefupalumimec.txt AC 1 ms 128 KB
test_uueeuoeuviuiieuioeeauuuieeuiee.txt AC
test_uuueueouaouuiuniaoaaeuaoaa.txt AC
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt AC
test_vokicozoyatekebagajiceb.txt AC
test_xlsphqfmqrtrtvmpvbgnkr.txt AC
test_yepelilemapakonarugupabepisoha.txt AC 1 ms 128 KB
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt AC 1 ms 128 KB