Editorial for 含水題


記住 在沒有思路時使用題解,不要複製貼上代碼。請尊重題目和題解的作者。
在真正親自解開題目前提交官方題解的代碼是可以封禁的罪行。

作者: a002

參考code

#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define all(x) x.begin(), x.end()
// #define F first 
// #define S second

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

template<typename T>
using vvector = vector<vector<T>>;

const ll oo = 1e18;

int main() {

    fast

    string s; cin >> s;
    for(auto i : s) {
        if(i == 'w') {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";

    return 0;
}

留言

目前沒有評論。