結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
![]() |
提出日時 | 2019-10-19 00:27:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 1,698 ms |
コンパイル使用メモリ | 165,864 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 20:15:38 |
合計ジャッジ時間 | 2,608 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 6 WA * 12 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int i=0; for(auto c:s){ if(i%2&&c!=' '){ puts("No"); return 0; } else if(i%2&&c==' '){ puts("No"); return 0; } } puts("Yes"); return 0; }