T1065-求助大佬,答案匹配但是wa

张鑫来蔡宇姣 at 2018-11-22T11:09:46+00:00 Comments(0)

<!--Markdown--> 1. 1. #include <stdio.h> #include <math.h> void myprintf(double c,double b,double a,double d)//进行打印 { if(((int)(a*1000))%10 == 0)//判断位数输出rate if(((int)(a*100))%10 != 0) printf("%.2f\t\t",a); else printf("%.1f\t\t",a); else printf("%.3f\t\t",a); if(((int)(c*100))%10)//判断位数输出月money printf("%.2f\t\t",c);

T1019-说好的提示用户输入数字

Maksim at 2018-10-15T11:01:04+00:00 Comments(1)

<!--Markdown--> <!--Markdown--> > 编写程序,**提示用户** 输入体重(以磅为单位)以及身高(以英寸为单位),然后显示BMI。 我还以为要先输出 > 输入数字 weight in pounds 输入数字 height in inches 然后再输出答案 然后头铁的我就错了七遍 不看标准输入输出是这样的

T1010-关于单位meter的单复数问题

caiwolo at 2018-04-03T16:46:21+00:00 Comments(0)

<!--Markdown--> <!--Markdown--> 程序检验逻辑为:不大于1的均为单数(即meter),大于1的均为复数(即meters)。 (实际英语中应该是不等于1,均为复数形式吧)

1030

20154835117 at 2018-03-13T13:00:18+00:00 Comments(0)

<!--Markdown--> #include<stdio.h> #include<math.h> int main(void) { float a,b,c,x,l,x1,x2,s; int L,S; scanf("%f %f %f",&a,&b,&c); x=pow(b,2)-4*a*c; x1=((-1)*b+sqrt(x))/(2*a); x2=((-1)*b-sqrt(x))/(2*a); l=x1-int(x1); if(l==0) L=0; else L=1; s=x2-int(x2); if(s==0) S=0; else S=1; if(x>0) { switch(L) { case 0: printf("The roots are %.f ",x1); break; case 1:

T7417-.。。

20171113802 at 2018-02-28T05:15:26+00:00 Comments(0)

<!--Markdown--> <!--Markdown--> import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); System.out.print("人民币"); String[] t = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; String[] p = { "万", "仟", "佰", "拾", "园", "角", "分" }; int d = s.indexOf('.'); if (d==-1) { s=s+".00"; } if (d

T1047-asd

20171113834 at 2018-02-27T13:06:18+00:00 Comments(0)

<!--Markdown--> <!--Markdown--> import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); double y = in.nextDouble(); double n = 10000; double all = 0; int i = 1; for (i = 1; i <= y; i++) { n = Math.ceil((n * (1 + 0.05)) * 100) / 100; } System.out.printf("Tuition after " + (int)