よじろめ覚書

私の理解度重視のソースコードです。

2020-01-22から1日間の記事一覧

ABC141B - Tap Dance

ABC

問題:B - Tap Dance #include <algorithm> #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { const string odd = "RUD", even = "LUD"; string s; bool flg = true; cin.tie(0); ios::sync_with_stdio(fal</string></iostream></algorithm>…

ABC141A - Weather Prediction

ABC

問題:A - Weather Prediction #include <algorithm> #include <iostream> #include <iterator> #include <string> #include <vector> using namespace std; #define ALL(c) (c).begin(), (c).end() int main(void) { vector<string> weather = {"Sunny", "Cloudy", "Rainy"}; string s; cin.tie(0); ios::sync_with_</string></vector></string></iterator></iostream></algorithm>…