题解列表

筛选

与7无关的数

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){    int n;    cin >……

不使用二维数组进行求解

摘要:解题思路:因为是矩形,所以只要得到长和宽的数据,就可以求得其内的面积,同时无需关注每一位数字在图形中的位置,只要得到在1 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 0 0 0 1 1……

2841: 大整数加法(超详细解答)

摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char arr[201]={&#……

2842: 大整数减法

摘要:解题思路:            drr[k]+=10;            drr[k+1]--;.//核心注意事项:参考代码:#include<stdio.h>#include<string.h……

包会,不会你来锤我

摘要:#### 贪心策略:优先选择先结束的活动,保证每个选择子结构的最佳结果 ```cpp #include #include using namespace std; //创建结构体,结构体……

if语句菜鸟驿站写法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){     printf("even"); }……

1670: 拆分位数

摘要:解题思路:使用数组注意事项:参考代码:int i,b,a[3]={0};    scanf("%d",&b);    for(i=0;i<3;i++){    a[i]=b%10;    b/=10;……

题解 2783: 判断是否为两位数

摘要:解题思路:if 判断注意事项:条件参考代码:       int a;    scanf("%d",&a);    if(a>10&&a<99)    printf("%d",1);    else ……