結果
| 問題 |
No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
|
| コンテスト | |
| ユーザー |
Utopiosphere
|
| 提出日時 | 2020-04-01 22:34:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 656 bytes |
| コンパイル時間 | 1,653 ms |
| コンパイル使用メモリ | 173,732 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 11:47:43 |
| 合計ジャッジ時間 | 2,348 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 16 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ALL(a) (a).begin(),(a).end()
#define rALL(a) (a).rbegin(),(a).rend()
typedef pair<int, int> Pint;
typedef pair<int64_t, int64_t> Pll;
typedef int64_t ll;
int main() {
string S;
getline(cin, S);
set<char> A, B;
for (int i = 0; i < S.size(); i++){
if (i % 2 == 0){
A.insert(S.at(i));
}
else {
B.insert(S.at(i));
}
}
for (int i = 0; i < 26; i++){
char a = 'a';
a += i;
if (A.count(a) ^ B.count(a)){
cout << "Yes" << endl;
return 0;
}
}
cout << "NO" << endl;
}
Utopiosphere