链接: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…
链接: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…
链接:https://ac.nowcoder.com/acm/contest/125954 A - 小红玩牌 算法: 模拟。 思路: 无。 关键代码: void miyan() { int a, c; char b, d; cin >> a …
链接:https://atcoder.jp/contests/abc437 A - Feet 算法: 模拟。 思路: 无。 关键代码: void miyan() { int a, b; cin >> a >> b; cout << a * 1…
链接:https://ac.nowcoder.com/acm/contest/125083 A - ICPC Problems 算法: 模拟。 思路: 无。 关键代码: void miyan() { int n; cin >> n; for (int i…
链接:https://atcoder.jp/contests/abc436 A - o-padding 算法: 模拟。 思路: 无。 关键代码: void miyan() { int n; string s; cin >> n >> s; cout &…
链接:https://ac.nowcoder.com/acm/contest/124143 A - 幽幽子想吃东西 算法: 模拟。 思路: 无。 关键代码: void miyan() { int a, b, c, n; cin >> a &g…
链接:https://ac.nowcoder.com/acm/contest/125080 A - 幂运算 算法: 构造。 思路: 无。 关键代码: void miyan() { int a; cin >> a; cout << a << ' ' << 1 …
链接:https://atcoder.jp/contests/abc435 A - Triangular Number 算法: 模拟。 思路: 无。 关键代码: void miyan() { int n; cin >> n; cout <<…
链接:https://ac.nowcoder.com/acm/contest/123788 A - 无穷无尽的力量 算法: 模拟。 思路: 无。 关键代码: void miyan() { int n; cin >> n; cout << st…