結果

問題 No.908 うしたぷにきあくん文字列
ユーザー private-dev-acctprivate-dev-acct
提出日時 2021-05-05 15:32:14
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 2,107 bytes
コンパイル時間 2,502 ms
コンパイル使用メモリ 208,688 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-11 10:21:30
合計ジャッジ時間 3,576 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,352 KB
testcase_06 AC 1 ms
4,352 KB
testcase_07 AC 2 ms
4,352 KB
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 2 ms
4,352 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 WA -
testcase_12 AC 1 ms
4,348 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,352 KB
testcase_15 WA -
testcase_16 AC 2 ms
4,348 KB
testcase_17 WA -
testcase_18 AC 2 ms
4,352 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize("Ofast")
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

#include "bits/stdc++.h"
using namespace std;

#define _CRT_SECURE_NO_WARINGS
#define INIT ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define ALL(obj) (obj).begin(),(obj).end()
#define RALL(obj) (obj).rbegin(),(obj).rend()
#define SORT(obj) sort(ALL(obj))
#define RSORT(obj) sort(RALL(obj))
#define REP(i,n) for(int i = 0; i < (n); ++i)
#define COUT_ALL(x) for(auto i=x.begin();i!=--x.end();i++)cout<<*i<<" ";cout<<*--x.end()<<endl;

using ll = long long;

const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
const double PI = 3.14159265358979323846;

template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }

template<typename T>
istream& operator >> (istream& is, vector<T>& vec) {for (T& x : vec) is >> x;return is;}
template<typename T>
ostream& operator << (ostream& os, vector<T>& vec) {
	for (int i = 0; i < vec.size(); i++) { os << vec[i] << (i + 1 == vec.size() ? "" : " "); }
	return os;}

int ctoi(char c) { return (c >= '0' && c <= '9') ? c - '0' : 0; }
void out(bool ans) { cout << (ans ? "Yes" : "No") << "\n"; }

#pragma region F

#pragma endregion

signed main()
{
	INIT; // 必須
	
	string s;
	cin >> s;
	int L = s.length();
	REP(i, L) {
		if (i % 2 == 0) {
			if (s[i] != ' ') { cout << "No" << "\n"; return 0; }
		}
		else {
			if ('a' <= s[i] and s[i] <= 'z') { cout << "No" << "\n"; return 0; }
		}
	}
	cout << "Yes" << "\n";
}

//std::string s = "a, b, c";     // 置換対象の文字列
//std::string target = ", ";     // 検索文字列
//std::string replacement = "-"; // 置換文字列
//if (!target.empty()) {
//	std::string::size_type pos = 0;
//	while ((pos = s.find(target, pos)) != std::string::npos) {
//		s.replace(pos, target.length(), replacement);
//		pos += replacement.length();
//	}
//}
0