よじろめ覚書

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

2020-01-21から1日間の記事一覧

ABC140B - Buffet

ABC

問題:B - Buffet #include <iostream> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int n, ans = 0; cin.tie(0); ios::sync_with_stdio(false); cin >> n; vector<int> a(n), b(n), c(n); REP(i, n) { cin >> a[i];</int></vector></iostream>…

ABC140A - Password

ABC

問題:A - Password #include <iostream> using namespace std; int main(void) { int n; cin.tie(0); ios::sync_with_stdio(false); cin >> n; cout << n * n * n << "\n"; return 0; }</iostream>