1040: [编程入门]实数的打印 摘要:解题思路:注意事项:第二个双引号前放一个空格,否则格式错误参考代码:s = eval(input())for i in range(1, 4): print("{:6.2f } ".format…… 题解列表 2022年02月21日 0 点赞 0 评论 120 浏览 评分:0.0
编写题解 1040: [编程入门]实数的打印--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); for(int i=1;i<=3;i++){ for(…… 题解列表 2022年03月08日 0 点赞 0 评论 153 浏览 评分:0.0
本来想一个print,用\n来处理,但不熟练处理不好只能用最简单的方法了 摘要:解题思路:蒽写注意事项:参考代码:a = float(input())print('%6.2f' % a)print('%6.2f %6.2f' % (a,a))pri…… 题解列表 2022年04月13日 0 点赞 0 评论 231 浏览 评分:0.0
c语言实数的打印,可变行数 摘要:#include <stdio.h> #define h 3 int main() {float a ; scanf ("%f",&a); int cnt = 1; for (int i …… 题解列表 2022年05月01日 0 点赞 0 评论 161 浏览 评分:0.0
wode笨方法,用了两个小循环 摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis…… 题解列表 2022年05月11日 0 点赞 0 评论 162 浏览 评分:0.0
实数的打印 (简单输出就欧了,c++) 摘要:解题思路:按题目要求输入,并用"6.2f"输出。注意事项:要用printf输出。参考代码:#include<bits/stdc++.h>using namespace std;float a;int …… 题解列表 2022年05月11日 0 点赞 0 评论 208 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:import java.io.*; /** * 注意每打一个数字就要打一个空格 */ public class Main { public static Buffered…… 题解列表 2022年05月13日 0 点赞 0 评论 165 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { float d; scanf("%f",&d); for(int i=1;i<4;i++){ …… 题解列表 2022年06月13日 0 点赞 0 评论 103 浏览 评分:0.0
[编程入门]实数的打印 摘要:思路:暴力解法,直接输出,输出格式不用管,6.2f意为:数字整体长度包括小数点为 6 位,保留 2 位小数,不足则以空格补齐,对齐方式为右对齐。当实际长度大于格式定义的位数时,如 12345678.1…… 题解列表 2022年06月17日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 1040 实数的打印 摘要:解题思路:注意事项:参考代码://如果打印b行 int main(){ int i, j,b; float a; scanf_s("%f %d", &a,&b); for (…… 题解列表 2022年07月26日 0 点赞 0 评论 132 浏览 评分:0.0