markdown 在线制作ppt json校验和格式化工具

POJ 1547

 1 #include<iostream>
 2 #include<string>
 3 using namespace std;
 4 int main()
 5 {
 6     int length;
 7     int high;
 8     int wide;
 9     string name;
10     int max=0;
11     string maxname;
12     int min=250;
13     string minname;
14     int number_stu;
15     do{
16     cin>>number_stu;
17     if(number_stu==-1)break;
18     max=0;
19     min=250;
20     while(number_stu--){
21     cin>>length;
22     cin>>high;
23     cin>>wide;
24     cin>>name;
25     if(length*high*wide>max)
26     {
27         max=length*wide*high;
28         maxname=name;
29     }
30     if(length*high*wide<min)
31     {
32         min=length*wide*high;
33         minname=name;
34     }
35     }
36     cout<<maxname<<" took clay from "<<minname<<"."<<endl;
37     }while(1);
38 }

 

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。 

技术网站地址: vmfor.com

posted @ 2015-06-10 16:32  GavinHacker  阅读(132)  评论(0编辑  收藏  举报
markdown 在线制作ppt json校验和格式化工具