よじろめ覚書

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

2019-11-20から1日間の記事一覧

ABC103A - Task Scheduling Problem

ABC

問題:A - Task Scheduling Problem #include <algorithm> #include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { const int INF = 1 << 30; int a, max_a = INF * (-1), min_a = INF; REP(i, 3) { cin >> a; max_a = max(</iostream></algorithm>…

ABC102B - Maximum Difference

ABC

問題:B - Maximum Difference #include <algorithm> #include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { const int INF = 1 << 30; int n, a[100], max_a = INF * (-1), min_a = INF; cin.tie(0); ios::sync_with_stdi</iostream></algorithm>…