結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
![]() |
提出日時 | 2021-03-22 23:14:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 516 bytes |
コンパイル時間 | 2,844 ms |
コンパイル使用メモリ | 191,864 KB |
最終ジャッジ日時 | 2025-01-19 21:07:19 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) typedef pair<int,int>P; int main(){ string s; getline(cin,s); for(int i=0;i<s.length();i++){ if(i %2 ==0){ if(s.at(i) != ' '){ continue; } else{ cout<<"No"<<endl; return 0; } } else{ if(s.at(i)==' '){ continue; } else{ cout<<"No"<<endl; return 0; } } } cout<<"Yes"<<endl; return 0; }