結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-06-02 20:36:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 431 bytes |
| コンパイル時間 | 926 ms |
| コンパイル使用メモリ | 78,796 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-24 12:04:39 |
| 合計ジャッジ時間 | 1,509 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
string s;
getline(cin,s);
for(int i=0;i<s.size();i++){
if(i%2==0){
if(97<=int(s[i]) && int(s[i])<=122)continue;
cout << "No" << endl;
return 0;
}else{
if((int)(s[i])==32)continue;
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}
mmn15277198