よじろめ覚書

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

2019-08-21から1日間の記事一覧

ABC057B - Checkpoints

ABC

問題:B - Checkpoints #include <cstdlib> #include <iostream> using namespace std; #define REP(i, n) for(int i = 0; i < (n); ++i) int main(void) { const int INF = 1e9; int n, m, a[50], b[50], c[50], d[50], min_dist, ans; cin.tie(0); ios::sync_with_stdio(false</iostream></cstdlib>…

ABC057A - Remaining Time

ABC

問題:A - Remaining Time #include <iostream> using namespace std; int main(void) { int a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b; cout << (a + b) % 24 << "\n"; return 0; }</iostream>