分类: 题解

65 篇文章

thumbnail
牛客周赛 Round 120
链接:https://ac.nowcoder.com/acm/contest/123788 A - 无穷无尽的力量 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; cout << st…
thumbnail
AtCoder Beginner Contest 433
链接:https://atcoder.jp/contests/abc433 A - Happy Birthday! 4 算法:     模拟。 思路:     无。 关键代码: void miyan() { int x, y, z; cin >> x >> y >> z…
thumbnail
AtCoder Beginner Contest 434
链接:https://atcoder.jp/contests/abc434 A - Balloon Trip 算法:     数学。 思路:     无。 关键代码: void miyan() { int w, b; cin >> w >> b; w *= 1000; cout << w / b …
thumbnail
牛客小白月赛124
链接:https://ac.nowcoder.com/acm/contest/123787 A - 小红的点构造 算法:     构造,贪心。 思路:     无。 关键代码: void miyan() { int x, y; cin >> x >&g…
thumbnail
牛客周赛 Round 119
链接:https://ac.nowcoder.com/acm/contest/122724 A - ICPC Rank 算法:     模拟。 思路:     无。 关键代码: void miyan() { int x, y, p1, p2; cin >> x >> y >> p1 >> p2; if (x …
thumbnail
牛客周赛 Round 118
链接:https://ac.nowcoder.com/acm/contest/121952 A - 小红的博弈 算法:     博弈论,贪心。 思路:     无。 关键代码: void miyan() { int n; cin >> n; if (n <= 2) cout << "red"…
thumbnail
AtCoder Beginner Contest 432
链接:https://atcoder.jp/contests/abc432 A - Permute to Maximize 算法:     模拟。 思路:     无。 关键代码: void miyan() { array<int, 3> a; for (int …
thumbnail
AtCoder Beginner Contest 393
链接:https://atcoder.jp/contests/abc393/tasks/abc393_a A - Poisonous Oyster 算法:     模拟。 思路:     无。 关键代码: void miyan() { string a, b; cin …
thumbnail
Codeforces Round 1056 (Div. 2)
链接:https://codeforces.com/contest/2155 A. El fucho 算法:     模拟。 思路:     打表。 关键代码: void miyan() { int n; cin >> n; cout << (n - 1) * 2 << endl; }…