分类: 题解

48 篇文章

thumbnail
Codeforces Round 1054 (Div. 3)
链接:https://codeforces.com/contest/2149 A. Be Positive 算法:     数学。 思路:     无。 关键代码: void miyan() { int n; cin >> n; vector<int> a(n); for (auto &x : …
thumbnail
AtCoder Beginner Contest 404
链接:https://atcoder.jp/contests/abc404 A - Not Found 算法:     模拟。 思路:     无。 关键代码: void miyan() { string s; cin >> s; vector<int> cnt(…
thumbnail
AtCoder Beginner Contest 424
链接:https://atcoder.jp/contests/abc424 A - Isosceles 算法:     模拟。 思路:     无。 关键代码: void miyan() { int a, b, c; cin >> a >> b …
thumbnail
AtCoder Beginner Contest 405
链接:https://atcoder.jp/contests/abc405 A - Is it rated? 算法:     模拟。 思路:     无。 关键代码: void miyan() { int r, c; cin >> r >> c; if (c == 1)…
thumbnail
AtCoder Beginner Contest 423
链接:https://atcoder.jp/contests/abc423 A - Scary Fee 算法:     模拟。 思路:     无。 关键代码: void miyan() { ll x, c; cin >> x >> c; cout << l…
thumbnail
Codeforces Round 1049 (Div. 2)
链接:https://codeforces.com/contest/2140 A. Shift Sort 算法:     贪心。 思路:     手玩几组样例后发现每次只能将一个 [latex]1[/latex] 换到正确位置,直接找有几个 [latex]1[/late…