結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 1 ms
4,348 KB
testcase_03 RE -
testcase_04 AC 0 ms
4,352 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 RE -
testcase_07 AC 1 ms
4,356 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 1 ms
4,348 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 RE -
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