摘要:
牛客小白月赛81 A. 小辰打比赛 解题思路: 遍历找到小于\(x\)的数累加即可。 代码: #include<bits/stdc++.h> using namespace std; void solve() { int n,x; int ans = 0; cin >> n >> x; for(in 阅读全文
摘要:
Toyota Programming Contest 2023#7(AtCoder Beginner Contest 328) A. Not Too Hard 题意: 将给定的数列\(a\)中数值小于\(x\)的数累加。 解题思路: 模拟。 代码: #include<bits/stdc++.h> u 阅读全文
摘要:
HHKB Programming Contest 2023(AtCoder Beginner Contest 327) A. ab 解题思路: 模拟即可。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; 阅读全文