2018-02-27から1日間の記事一覧

AtCoder Grand Contest 021

目標: 300点を速解きする. 1WAしたので速くはないですね. B以降は着手してないです.A - Digit Sum 2i桁目を9にしてi+1桁目から1引く, 出来ないなら桁借りする. これを繰り返す. 出来た数の各桁を足して答え. #include <bits/stdc++.h> using namespace std; string n; void </bits/stdc++.h>…