結果
問題 | No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn |
ユーザー |
|
提出日時 | 2020-06-05 11:17:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 2,259 ms |
コンパイル使用メモリ | 194,152 KB |
最終ジャッジ日時 | 2025-01-10 21:34:12 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 2 |
other | AC * 9 WA * 10 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i=0;i<(n);i++)using namespace std;int main(){string s; getline(cin,s);int n=s.length();rep(l,n) for(int r=l+2;r<=n;r++) {bool del[128]={};rep(i,n) if(i<l || r<=i || (i-l)%2==1) del[s[i]]=true;bool ok=true;rep(i,n) if(l<=i && i<r && (i-l)%2==0 && del[s[i]]) ok=false;if(ok) return puts("Yes"),0;}puts("No");return 0;}