結果

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

テストケース

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

ソースコード

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]!='\n'){
		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