cplusplusonly's memo

Atcoder: https://atcoder.jp/users/cplusplusonly

2020-09-01から1ヶ月間の記事一覧

REP マクロの罠

本日の ABC 179 E の愚直解 #include <iostream> #include <vector> #include <cinttypes> #define REP(n) for (int repeat_index = 0; repeat_index < (int)n; repeat_index++) using namespace std; int main() { int64_t n, x, m; cin >> n >> x >> m; int64_t sum = 0; REP(n) { sum +</cinttypes></vector></iostream>…

AtCoder ABC178 参戦記

AtCoder の ABC178 atcoder.jpに参加しました。結果は 62 分全完 (1 WA) 134 分でパフォーマンス2275でした。ここ三回連続黄パフォを出せているので、この調子でがんばっていきたいと思います。 感想 A 問題 (1 - x) でよい。業務でも時々書く。 B 問題 (a *…

ACL を VisualStudio で読み込んだときにビルドエラーが出たので対応した

AtCoder のライブラリ ACLatcoder.jpを VisualStudio で読み込もうとしてビルドエラーにであったので対応法を書いておきます。 症状 #include <atcoder/all>とすると以下のエラーになります。 1>C:\work\atcoder\atcoder\atcoder\acl\atcoder\internal_math.hpp(49,9): er</atcoder/all>…