分类: 题解

94 篇文章

thumbnail
AtCoder Beginner Contest 441
链接:https://atcoder.jp/contests/abc441 A - Black Square 算法: 模拟。 思路: 无。 关键代码: void miyan() { int x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2; if (x2 >= x1 && y2 >= y1 &a…
thumbnail
AtCoder Beginner Contest 442
链接:https://atcoder.jp/contests/abc442 A - Count . 算法: 模拟。 思路: 无。 关键代码: void miyan() { string s; cin >> s; ll ans = 0; for (auto c : s) if (c == 'i' || c == 'j') ++ans; cout &l…
thumbnail
牛客周赛 Round 123
链接:https://ac.nowcoder.com/acm/contest/125954 A - 小红玩牌 算法:     模拟。 思路:     无。 关键代码: void miyan() { int a, c; char b, d; cin >> a …
thumbnail
AtCoder Beginner Contest 437
链接:https://atcoder.jp/contests/abc437 A - Feet 算法:     模拟。 思路:     无。 关键代码: void miyan() { int a, b; cin >> a >> b; cout << a * 1…
thumbnail
牛客周赛 Round 122
链接:https://ac.nowcoder.com/acm/contest/125083 A - ICPC Problems 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; for (int i…
thumbnail
AtCoder Beginner Contest 436
链接:https://atcoder.jp/contests/abc436 A - o-padding  算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; string s; cin >> n >> s; cout &…
thumbnail
牛客周赛 Round 121
链接:https://ac.nowcoder.com/acm/contest/124143 A - 幽幽子想吃东西 算法:     模拟。 思路:     无。 关键代码: void miyan() { int a, b, c, n; cin >> a &g…
thumbnail
牛客小白月赛125
链接:https://ac.nowcoder.com/acm/contest/125080 A - 幂运算 算法:     构造。 思路:     无。 关键代码: void miyan() { int a; cin >> a; cout << a << ' ' << 1 …
thumbnail
AtCoder Beginner Contest 435
链接:https://atcoder.jp/contests/abc435 A - Triangular Number  算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; cout <<…
thumbnail
牛客周赛 Round 120
链接:https://ac.nowcoder.com/acm/contest/123788 A - 无穷无尽的力量 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; cout << st…