よじろめ覚書

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

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

ABC113A - Discount Fare

ABC

問題:A - Discount Fare #include <iostream> using namespace std; int main(void) { int x, y; cin.tie(0); ios::sync_with_stdio(false); cin >> x >> y; cout << x + y / 2; return 0; }</iostream>

ABC112B - Time Limit Exceeded

ABC

問題:B - Time Limit Exceeded #include <algorithm> #include <iostream> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define PB push_back int main(void) { int n, t, p_cost, p_time; vector<int> ret; cin.tie(0); ios::sync_with_stdio(f</int></vector></iostream></algorithm>…