题解列表

筛选

很简单的题

摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,……

人类思维与机器思维的对比

摘要:解题思路:多学数学吧注意事项:参考代码://尼科彻斯定理 //机器思维 #include<stdio.h> #include<math.h> #include<string.h> void ……

超级简略版

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a=15,b=25,h,y=150; float m; h=y*2/a; m=(a+b)*h/2.0……

多动脑子,简化代码

摘要:解题思路:注意事项:参考代码://机器思维太单一 #include<stdio.h> #include<stdbool.h> #include<string.h>//strlen好用 bool……

非常简洁易懂

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int factor_sum(int n); int main(void) {     int i, sum1,sum2; ……

加油啊大家

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) {     int a, b, c, d, e, f, n = 1;     while(n++……

The Kth great number

摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << &#39;……

2791: 计算邮资

摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc……

C++ 计算器 模拟题

摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v

[编程入门]筛选N以内的素数

摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type……