Skip to content

Commit

Permalink
Create charpter5(1).txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tabVersion authored Nov 30, 2017
1 parent 159da9c commit 699f8c0
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions charpter5(1).txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
A.温度转换
/*
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
using namespace std ;
int main()
{
double a ,b ;
cin >> a ;
cout << (double)(a-32.0)/1.8 << endl ;
return 0 ;
}
*/

B.数字分离
/*
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <stack>
using namespace std ;

int main()
{
stack<int> s ;
long long a ; cin >> a ;
while(a!=0)
{
s.push(a%10) ;
a /= 10 ;
}
while(!s.empty())
{
cout << s.top() << " " ;
s.pop() ;
}
cout << endl ;
return 0 ;
}
*/

C.评分统计II
/*
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <stack>
using namespace std ;

int main()
{
double map[10] ;
int flag = 0 ;
for( int i =0 ; i< 10 ; i++) cin >> map[i] ;
cin >> flag ;
sort(map ,map+10 ) ;
double ans = 0.0 ;
if(flag == 2 )
{
for( int i = 2 ; i< 8; i++) ans += map[i] ;
cout << (double) ans/ 6 << endl ;
}
else
{
for( int i = 1 ; i< 9 ;i++) ans += map[i] ;
cout << (double) ans/8 << endl ;
}
return 0 ;
}
*/

0 comments on commit 699f8c0

Please sign in to comment.