結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-18 21:26:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 602 bytes |
| コンパイル時間 | 705 ms |
| コンパイル使用メモリ | 76,716 KB |
| 最終ジャッジ日時 | 2025-01-07 22:35:51 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 9 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <queue>
#include <list>
using namespace std;
typedef long long int ll;
typedef pair<int, int> Pii;
const ll mod = 1000000007;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
for (int i = 0; i < s.length(); i += 2) {
if (s[i] == ' ') {
cout << "No" << endl;
return 0;
}
}
for (int i = 1; i < s.length(); i += 2) {
if (s[i] != ' ') {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}