2019-02-16から1日間の記事一覧
問題 下記リンク atcoder.jp 解答 A問題 cin >> a >> b; if(b%a == 0) cout << a+b << endl; else cout << b-a << endl; B問題 mapに挿入、n個あるものをカウントして出力 int k[31], a[31][31]; map<int, int> mp; int main(void){ ios_base::sync_with_stdio(false);</int,>…
問題 下記リンク atcoder.jp 解答 A問題 cin >> a >> b; if(b%a == 0) cout << a+b << endl; else cout << b-a << endl; B問題 mapに挿入、n個あるものをカウントして出力 int k[31], a[31][31]; map<int, int> mp; int main(void){ ios_base::sync_with_stdio(false);</int,>…