結果

問題 No.908 うしたぷにきあくん文字列
ユーザー game_krbgame_krb
提出日時 2019-11-03 18:11:10
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 28,128 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-13 01:49:33
合計ジャッジ時間 1,090 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,352 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 0 ms
4,352 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 0 ms
4,352 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 0 ms
4,348 KB
testcase_12 WA -
testcase_13 AC 0 ms
4,352 KB
testcase_14 WA -
testcase_15 AC 1 ms
4,352 KB
testcase_16 WA -
testcase_17 AC 1 ms
4,348 KB
testcase_18 WA -
testcase_19 AC 0 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#define N 100

int main(void){
	char s[N];
	int i=0;
	int flag=0;
	
	scanf("%s",s);
	
	while(s[i]!='\0'){
		if(i%2==0){
			if(!(s[i]>='a'&&s[i]<='z')){
				flag=1;
			}
		}	
		if(i%2==1){
			if(s[i]!=' ')
				flag=1;
		}
		i++;
	}

	if(flag==0)
		printf("Yes\n");
	else
		printf("No\n");
	
	return 0;
}
0