利用多重循环结合限制条件来判断 摘要:解题思路:注意事项:寻找最省时的解决思路,避免超时参考代码:#include<stdio.h>int main(){ int i,j,a,sum1,sum2; for(i=2;i<=300…… 题解列表 2022年04月16日 0 点赞 0 评论 428 浏览 评分:0.0
1149: C语言训练-计算1~N之间所有奇数之和(C++) 摘要:解题思路:运用取模的方法判断是否为奇数注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,s=0,…… 题解列表 2022年04月16日 0 点赞 0 评论 463 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int G(int a,int b){ if(b==0) return a; return G(b,a%b);}int main(){…… 题解列表 2022年04月16日 0 点赞 0 评论 396 浏览 评分:0.0
多重循环寻找符合题意的约束条件并输出 摘要:解题思路:多重循环寻找符合题意的约束条件并输出注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c,d,e,f; for(a=0;a<=1;a++)…… 题解列表 2022年04月17日 0 点赞 0 评论 367 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ char num[100]; char name[100]; int score[3]…… 题解列表 2022年04月17日 0 点赞 0 评论 381 浏览 评分:0.0
纯新手,来看看呀QAQ 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k; char a[100],b[100]; gets(a); for…… 题解列表 2022年04月17日 0 点赞 0 评论 253 浏览 评分:0.0
简简单单,照着题目思路去做,就很自然 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a,i,j,k,sum; scanf("%d",&n); a=n*n*n; …… 题解列表 2022年04月17日 0 点赞 0 评论 362 浏览 评分:0.0
哈哈嗨,简单捏 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; a[0]=1; …… 题解列表 2022年04月17日 0 点赞 0 评论 228 浏览 评分:0.0
整体比较容易,注意雏鸡即可 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k,l; for(i=0;i<=20;i++) { for(j…… 题解列表 2022年04月17日 0 点赞 0 评论 275 浏览 评分:0.0
直接一行代码输出 摘要:解题思路:每一次都是剩余值乘对应剩余利润注意事项:判断利润和当前值大小参考代码:import java.util.Scanner;public class Main { public static v…… 题解列表 2022年04月17日 0 点赞 0 评论 306 浏览 评分:0.0