よじろめ覚書

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

2019-08-01から1ヶ月間の記事一覧

ABC047B - すぬけ君の塗り絵 2 イージー / Snuke's Coloring 2 (ABC Edit)

ABC

問題:B - すぬけ君の塗り絵 2 イージー / Snuke's Coloring 2 (ABC Edit) #include <algorithm> #include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int w, h, n, x, y, a, min_x, max_x, min_y, max_y; cin.tie(0); i</iostream></algorithm>…

ABC047A - キャンディーと2人の子供 / Fighting over Candies

ABC

問題:A - キャンディーと2人の子供 / Fighting over Candies #include <iostream> using namespace std; int main(void) { int a, b, c; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c; cout << (a == b + c || b == c + a || c == a + b? "Yes" : "N</iostream>…