1808:输入输出练习之精度控制1 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){float a; //单精度scanf("%f",&a);printf("%0.3f",a); 小数点后3位 …… 题解列表 2022年04月07日 0 点赞 0 评论 484 浏览 评分:0.0
1807:输入输出练习之格式控制 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d %d %d",&a,&b,&c);printf("%-8d%-8d%-8d…… 题解列表 2022年04月07日 0 点赞 0 评论 420 浏览 评分:0.0
1807:输入输出练习之格shi 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d %d %d",&a,&b,&c);printf("%-8d%-8d%-8d…… 题解列表 2022年04月07日 0 点赞 0 评论 525 浏览 评分:0.0
1806输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a, &b, &c); printf("%d…… 题解列表 2022年04月07日 0 点赞 0 评论 506 浏览 评分:0.0
1668:printf基础练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; scanf("%d",&a); printf("%#o %#d %#x\n",a,a…… 题解列表 2022年04月07日 0 点赞 0 评论 353 浏览 评分:0.0
用C语言破“奇怪的数列” 摘要:解题思路:本题的思路并不难,纸上都能做出来,但用代码实现就很抽象可以分为几步获取初始字符串c(很简单的,%s就行)和变换次数n创建循环1,循环内的任务是每次都把上次得到的字符串“解释”一次然后赋给c;…… 题解列表 2022年04月07日 0 点赞 0 评论 1035 浏览 评分:9.9
什么llllllllj题目【c++】 摘要:```cpp #include using namespace std; string a, b; int main(){ printf("please input a …… 题解列表 2022年04月07日 0 点赞 0 评论 384 浏览 评分:9.9
1047: [编程入门]报数问题——约瑟夫环——超容易理解版 摘要:解题思路:刚开始把所有的人放到一个列表里面去,报的数字不是3就把这个人放到列表的最后一个位置上面去,如果是3就把这个数字从列表中去掉。直到列表剩下一个人为止注意事项:参考代码:n = int(inpu…… 题解列表 2022年04月07日 0 点赞 0 评论 528 浏览 评分:0.0
C++ 究极三目运算符 摘要:解题思路:注意事项:参考代码:#include<cstring>#include<stdio.h>int main(){ int n,t,k,j,i=1;char c[124][124]; …… 题解列表 2022年04月07日 0 点赞 0 评论 543 浏览 评分:0.0
时间显示题目 摘要:解题思路:注意事项:参考代码:n=int(input()) m=(n//3600000)//24 n1=n//1000-m*3600*24 h=n1//3600 m=(n1-h*3600)//…… 题解列表 2022年04月07日 0 点赞 0 评论 489 浏览 评分:9.9