分类: 题解

94 篇文章

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 1050 (Div. 4)
链接:https://codeforces.com/contest/2148 A. Sublime Sequence 算法:     模拟。 思路:     无。 关键代码: void miyan() { int x, n; cin >> x >> n; if (n &…
thumbnail
Codeforces Round 1049 (Div. 2)
链接:https://codeforces.com/contest/2140 A. Shift Sort 算法:     贪心。 思路:     手玩几组样例后发现每次只能将一个 [latex]1[/latex] 换到正确位置,直接找有几个 [latex]1[/late…
thumbnail
Codeforces Round 1047 (Div. 3)
链接:https://codeforces.com/contest/2137 A. Collatz Conjecture     这题读假了以为是找出全部的可能值。 算法:     模拟。 思路:     无。 关键代码: voi…
thumbnail
AtCoder Beginner Contest 422
链接:https://atcoder.jp/contests/abc422 A - Stage Clear 算法:     模拟。 思路:     无。 关键代码: void solve() { string s; cin >> s; if (s[2] >= '…
thumbnail
AtCoder Beginner Contest 421
链接:https://atcoder.jp/contests/abc421 A - Misdelivery 算法:     模拟。 思路:     无。 关键代码: void solve() { int n; cin >> n; vector<string> s(n); for (auto &x : s) cin >> x; int …