0
0
已采纳
第二题(100):
#include<>
#include<>
using namespace std;
int main(){
freopen(".in","r",stdin);
freopen(".out","w",stdout);
string a;
int mx=0;
string mxi;
while(cin>>a){
int s=;
for(int i=0;i<a.size();i++){
s+=a[i];
}
if(){
mx=s;
mxi=a;
}
}
cout<<mx<<' '<<mxi;
fclose();
fclose();
return 0;
}
0
0
0
0
第一题:(90)
#include<>
#include<>
using namespace std;
int main(){
freopen(".in","r",stdin);
freopen(".out","w",stdout);
int n;
cin>>n;
double x=n*85;
if(n>=50){
x*=;
}else if(n>=20){
x*=;
}else{
x*=;
}
printf("%.1f",int()/10.0);
fclose();
fclose();
return 0;
}
0
0
0
0
第三题(100):
#include<iostream>
#include<cstdio>
using namespace std;
int mon[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
freopen("fan.in","r",stdin);
freopen("fan.out","w",stdout);
int a,b,c,x;
cin>>a>>b>>c>>x;
if(c==10&&(x==6||x==7)){
cout<<0;
return 0;
}
if(){
mon[2]=29;
}
int cnt=;
while(1){
c++;
cnt++;
if(c>mon[ ]){
c= ;
b++;
if(b> ){
b= ;
a++;
if(){
mon[2]=29;
}else{
mon[2]=28;
}
}
}
x++;
if(){
x=1;
}
if(c==10&&(x==6||x==7)){
cout<< ;
break;
}
}
fclose();
fclose();
return 0;
}
0