結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
![]() |
提出日時 | 2019-09-08 01:28:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 2,076 ms |
コンパイル使用メモリ | 192,188 KB |
最終ジャッジ日時 | 2025-01-07 17:25:29 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; getline(cin, s); bool f = true; for(int i = 0; i < s.size(); i++){ if(i % 2){ if(s[i] != ' ') f = false; }else{ if(!('a' <= s[i] && s[i] <= 'z')) f = false; } } cout << (f ? "Yes" : "No") << endl; }