输入输出练习之格式控制 摘要:解题思路:输出的时候,关键要按8个字符的宽度,所以可以用“%8d"的格式化输出,但是,又由于题目要靠左对齐输出,所以“%-8d"的格式化输出,负号代表向左对齐,没有负号的表示向右对齐注意事项:向左对齐…… 题解列表 2021年11月14日 0 点赞 0 评论 1228 浏览 评分:8.0
简单易懂1855 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i; scanf("%d",&N); for(i=0;i<N;i++) printf("A") ; …… 题解列表 2021年11月14日 0 点赞 0 评论 376 浏览 评分:0.0
二级C语言-同因查找(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ for(int i=10;i<=1000;i++) //10到1000的数 { if(i%2==0 …… 题解列表 2021年11月14日 0 点赞 0 评论 312 浏览 评分:9.0
二级C语言-计负均正(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a=0,s[20]; //数组储存20个整数 float x,sum=0; for(int i=…… 题解列表 2021年11月14日 0 点赞 0 评论 360 浏览 评分:4.0
二级C语言-自定义函数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ctof(int c){ int f; f=32+c*9/5; return f;}int main(){ for(int c…… 题解列表 2021年11月14日 0 点赞 0 评论 408 浏览 评分:6.0
最大公约数与最小公倍数 摘要:#include<stdio.h> int main() { int x,y,t; int i,k; scanf("%d %d",&x,&y); if(x>y){ t=x…… 题解列表 2021年11月14日 0 点赞 0 评论 184 浏览 评分:0.0
[编程入门]结构体之时间设计详解-------(Python) 摘要:注意: ——moon1中的月份天数不要写错 代码如下: ```python year,moon,day=map(int,input().split()) def leapyear(y…… 题解列表 2021年11月14日 0 点赞 0 评论 406 浏览 评分:0.0
以后可以回头看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h>int main(){ double x,y,d; while(scanf("%lf%lf"…… 题解列表 2021年11月14日 0 点赞 0 评论 332 浏览 评分:2.0
三角形判断(留着以后回头看) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,max,min,mid; while(scanf("%d%d%d",&a,&…… 题解列表 2021年11月14日 0 点赞 0 评论 412 浏览 评分:2.0
P1000......21888545 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,sum; scanf("%d%d",&a,&b); sum=a+b; …… 题解列表 2021年11月14日 0 点赞 0 评论 307 浏览 评分:2.0