結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
![]() |
提出日時 | 2019-10-18 21:26:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 483 bytes |
コンパイル時間 | 1,516 ms |
コンパイル使用メモリ | 166,344 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 14:52:07 |
合計ジャッジ時間 | 2,279 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 9 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define REP(i,m,n) for(int i=(m);i<(n);i++) #define rep(i,n) REP(i,0,n) #define pb push_back #define all(c) (c).begin(),(c).end() typedef long long ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll; const ll inf=1e9+7; int main(){ string s; cin>>s; bool f=1; rep(i,s.size()){ if(i%2){ if(s[i]!=' ')f=0; }else{ if(s[i]==' ')f=0; } } cout<<(f?"Yes":"No")<<endl; }