2018-02-13から1日間の記事一覧

みんなのプロコン 2018

A - yahoo問題文通りに判定する. #include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if(s[0] == 'y' && s[1] == 'a' && s[2] == 'h' && s[3] == s[4]) { cout << "YES" << endl; } else { cout << "NO" << endl; } } B - オークションX</bits/stdc++.h>…