1 条题解
-
0
自动搬运
来自洛谷,原作者为

chenyuan3
https://www.luogu.com.cn/article/21efws0f搬运于
2025-08-24 23:13:12,当前版本为作者最后更新于2025-04-12 18:58:09,作者可能在搬运后再次修改,您可在原文处查看最新版自动搬运只会搬运当前题目点赞数最高的题解,您可前往洛谷题解查看更多
以下是正文
模拟题。枚举 从 到 ,判断 除以 的余数是否为 ,如果是,那么答案加一。
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll ans = 0; void solve() { for (ll i = 1; i <= 2025; i++) { if (i * i * i % 10 == 3) { ans++; } } cout << ans; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); // ll t; cin >> t; while (t--) solve(); return 0; }
- 1
信息
- ID
- 12004
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 1
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者