题解 2837: 年龄与疾病 摘要: #include using namespace std; int a[100],c; double b,sh,q,z,l; int main(){ …… 题解列表 2023年11月29日 0 点赞 1 评论 323 浏览 评分:9.9
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){ char a[N]; gets(a); int i=0; a[…… 题解列表 2023年11月29日 0 点赞 0 评论 149 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:1、求最大公约数的方法:辗转相除法x = 5 , y = 7;max = 7 , min = 5;7 % 5 = 2;5 % 2 = 1;2 % 1 = 0;那么最大公约数就是1看到这里大家…… 题解列表 2023年11月29日 0 点赞 0 评论 305 浏览 评分:9.9
输入输出练习之精度控制1 摘要:#include<stdio.h> int main() { float a; scanf("%f",&a); printf("%.3f…… 题解列表 2023年11月29日 0 点赞 0 评论 228 浏览 评分:0.0
输入输出练习之格式控制 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 2 点赞 0 评论 857 浏览 评分:0.0
输出第二个数字 哈哈哈哈简直不要太基础 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 4 点赞 0 评论 488 浏览 评分:6.0
最简单的代码Hello, World!的输出 摘要:谁不会谁是大傻子哈哈哈哈哈哈哈哈哈哈哈哈哈哈参考代码:#include<stdio.h> #include<stdlib.h> int main() { printf("Hello, …… 题解列表 2023年11月29日 0 点赞 0 评论 395 浏览 评分:0.0
奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){ print…… 题解列表 2023年11月29日 0 点赞 0 评论 142 浏览 评分:0.0
java,贪心解法,O(nlogn)时间复杂度 摘要:解题思路: 首先,看到代价和最少,很容易想到贪心。也就是对代价数组进行排序,优先修改代价小的元素注意事项: 答案记得设置为long,第九个测试点int会越界参考代码: imp…… 题解列表 2023年11月29日 1 点赞 4 评论 863 浏览 评分:9.9
暴力搜索 dfs 摘要:解题思路:用1~9的排列的方法 ,在排列时进行判断是否可以 注意事项:参考代码:#include<bits/stdc++.h> using namespace std; class plane{…… 题解列表 2023年11月29日 0 点赞 2 评论 3063 浏览 评分:9.1