結果
| 問題 | No.908 うしたぷにきあくん文字列 |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-11 14:39:07 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
WA
(最初)
|
| 実行時間 | - |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 39,140 KB |
| 最終ジャッジ日時 | 2026-02-22 13:13:35 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 18 |
ソースコード
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
void main(void){
char s[1000] = "a";
bool strcheck = true;
scanf("%s",s);
for(int i = 0 ; i < (int)strlen(s);i++){
if(s[i] == ' ' && i % 2 == 0 || s[i] != ' ' && i % 2 != 0){
strcheck = false;
}
}
if(strcheck){
printf("Yes");
}else{
printf("No");
}
}
Maeda