首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
太一
2026年3月18日 01:09
abc 题解:
P1165
回复 3
|
赞 1
|
浏览 67
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { for (int a = 1;a <= 9;a++) { for (int b = 1;b <= 9;b++) { &nbs...
Jinx_K
2026年3月12日 13:23
abc 题解:for for for
P1165
回复 0
|
赞 2
|
浏览 79
#include <iostream> #include <cstdio> using namespace std; int main() { for(int a=1;a<6;a++) for(int b=1;b<6;b++) for(int c=0;c<=9;c++) if(a*100+b*110+c*12==532) printf("%d %d %d\n",a,b,c); return 0; }
bro
2026年3月7日 18:03
abc 题解:c++
P1165
回复 0
|
赞 0
|
浏览 93
#include <bits/stdc++.h> using namespace std; int main(){ for(int i = 0 ; i <= 9; i++){ for(int j = 0 ; j <= 9; j++){ for(int k = 0 ; k <= 9; k++){ &n...
uly
2026年3月6日 19:09
abc 题解:
P1165
回复 0
|
赞 0
|
浏览 94
#include <bits/stdc++.h> using namespace std; int main () { for (int a=0;a<6;a++) { for (int b=0;b<6;b++) { int c1 =1; int n1 = a*100+b*10+c1; int k1 = b*100+c1*10+c1; if (n1+k1==532) { ...
ggyh99
2026年3月5日 15:34
abc 题解:
P1165
回复 0
|
赞 0
|
浏览 76
这道题有bug,完全可以通过解方程算出abc c只能是1 #include<bits/stdc++.h> using namespace std; int main(){ //c只可能是1 cout << 3 << " " << 2 << " " << 1; return 0; }
mlx
2026年2月8日 22:28
abc 题解:
P1165
回复 0
|
赞 3
|
浏览 225
#include<iostream> using namespace std; int main() { for(int a=1;a<=9;a++) for(int b=1;b<=9;b++) for(int c=0;c<=9;c++) if(a*100+b*10+c+b*100+c*10+c==532) cout<<a<<" "<<b<<" "<<c<<endl; return 0; }
曾不会
2026年1月27日 09:42
abc 题解:
P1165
回复 0
|
赞 0
|
浏览 146
//循环包理解 #include<stdio.h> int main() { for(int i=1;i<=5;i++) { for(int j=0;j<=9;j++) { for(int k=0;k<...
zxjrheaven
2025年3月14日 20:10
abc 题解:暴力
P1165
回复 0
|
赞 4
|
浏览 1.1k
#include <bits/stdc++.h> using namespace std; int main() { for(int a=0;a<6;a++) { for(int b=0;b<6;b++) {  ...
西电机试专家
2025年3月2日 11:51
abc 题解:abcdefg
P1165
回复 0
|
赞 5
|
浏览 1.1k
#include <bits/stdc++.h> using namespace std; int main(){ for(int i=0;i<=9;i++) { for(int j=0;j<=9;j++){ for(int k=0;k<=9;k++){  ...
Howie_Waves
2024年9月2日 16:25
abc 题解:
P1165
回复 0
|
赞 2
|
浏览 2.3k
这个题可以从式子中发现一些范围限制 abc + bcc = 532 说明 ① a ≠ 0 && b ≠ 0 (所以循环直接从1开始) ②最高位 a+b = 5,那么a和b都在[1, 4]这个区间 从而减少循环开销 #include<bits/stdc++.h> using namespace std; int main() { int a, b, c; for(a = 1; a <= 4; a++) for(b = 1; b <=4; b++) for(c = 0; c <...
1
2
题目
abc
题解数量
17
发布题解
在线答疑
热门题解
1
abc 题解:abcdefg
2
abc 题解:暴力
3
从题目就能推理出来答案唯一,所以直接输出此唯一解就行了
4
写啥嵌套循环呢,要是8位数咋整,回溯不香吗??
5
abc 题解:
6
abc 题解:for for for
7
abc(C++) 题解:
8
abc 题解:
9
abc 题解:
10
abc 题解:c++