結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
water
|
| 提出日時 | 2020-03-05 11:01:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 1,427 ms |
| コンパイル使用メモリ | 166,192 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 00:53:13 |
| 合計ジャッジ時間 | 2,207 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 9 |
ソースコード
#include <bits/stdc++.h>
#define INF 990000000
//9
using namespace std;
int main() {
string s;
cin>>s;
int flag=0;
for(int i=0;i<(int)s.size();i++){
if(i%2==0){
if(!islower(s[i]))flag=1;
}else{
if(s[i]!=' ')flag=1;
}
}
if(flag==0)
cout << "Yes"<<endl;
else
cout << "No"<<endl;
}
water