結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
![]() |
提出日時 | 2020-02-20 00:03:18 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 359 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 18:27:36 |
合計ジャッジ時間 | 1,328 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include<stdio.h> #include<string.h> int main() { char s[102]; scanf("%[^\n]", s); int i, n = strlen(s); for (i = 0; i < n; i++) { if (i % 2 > 0) { if (s[i] != ' ') { printf("No\n"); return 0; } } else { if (s[i] == ' ') { printf("No\n"); return 0; } } } printf("Yes\n"); return 0; }