結果
問題 |
No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
|
ユーザー |
![]() |
提出日時 | 2020-04-01 23:26:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 474 bytes |
コンパイル時間 | 2,677 ms |
コンパイル使用メモリ | 194,924 KB |
最終ジャッジ日時 | 2025-01-09 12:25:55 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 3 |
other | AC * 7 WA * 3 RE * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); vector<int> even(26), odd(26); for (int i = 0; i < s.size(); i++) { if (i % 2 == 0) { even.at(s.at(i) - 'a')++; } else { odd.at(s.at(i) - 'a')++; } } for (int i = 0; i < 26; i++) { if ((even.at(i) == 0) != (odd.at(i) == 0)) { puts("Yes"); return 0; } } puts("NO"); }