よじろめ覚書

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

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

ABC120A - Favorite Sound

ABC

問題:A - Favorite Sound #include <algorithm> #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 << min(b / a, c) << "\n"; return 0; }</iostream></algorithm>

ABC119B - Digital Gifts

ABC

問題:B - Digital Gifts #include <iomanip> #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define RATE 380000.0 int main(void) { int n; double x, ans = 0.0; string u; cin.tie(0); ios::sync_with_stdio(false)</string></iostream></iomanip>…

ABC119A - Still TBD

ABC

問題:A - Still TBD #include <iostream> #include <string> using namespace std; int main(void) { string s; cin.tie(0); ios::sync_with_stdio(false); cin >> s; cout << (s <= "2019/04/30"? "Heisei" : "TBD") << "\n"; return 0; }</string></iostream>