結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
![]() |
提出日時 | 2019-10-18 21:24:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 539 bytes |
コンパイル時間 | 2,125 ms |
コンパイル使用メモリ | 194,244 KB |
最終ジャッジ日時 | 2025-01-07 22:35:24 |
ジャッジサーバーID (参考情報) |
judge3 / 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==0){ if(s[i]-'a'>=0&&s[i]-'a'<26); else f=0; }else{ if(s[i]==' '); else f=0; } } cout<<(f?"Yes":"No")<<endl; }