C语言思路简单,易懂!!!
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int f(int n){ double a,b; a=n/100; b=n%10……
编写题解 1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数
摘要:解题思路:注意事项:参考代码:for i in range(1000, 10000): # 生成一个序列,也就是所有的四位数
l = i // 100 # 将这个数的左边两位拿出
……
1136求具有abcd=(ab+cd)2性质的四位数(直接输出那三个数)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ for (int i = 1000; i……