B2046
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a;
b=a/1.2;
c=a/3.0;
c=c+27+23;
if(b<c)cout<<"Walk";
if(b>c)cout<<"Bike";
if(b==c)cout<<"All";
return 0;
}
B2047
#include<bits/stdc++.h>
using namespace std;
int main()
{
double n;
cin>>n;
if(0<=n&&n<5.0)printf("%.3lf",-n+2.5);
else if(5<=n&&n<10)printf("%.3lf",2.0-1.5*(n-3)*(n-3));
else if(10<=n&&n<20)printf("%.3lf", n/2.0-1.5);
return 0;
}
B2048
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long a;
char b;
cin>>a>>b;
if(a<=1000&&b=='n')cout<<8;
if(a<=1000&&b=='y')cout<<13;
if(b=='n')
{
if(a>1000&&(a-1000)%500==0)cout<<8+((a-1000)/500)*4;
if(a>1000&&(a-1000)%500!=0)cout<<12+((a-1000)/500)*4;
}
if(b=='y')
{
if(a>1000&&(a-1000)%500==0)cout<<8+((a-1000)/500)*4;
if(a>1000&&(a-1000)%500!=0)cout<<12+((a-1000)/500)*4;
}
return 0;
}
B2049
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a[3],l;
for(int i=0;i<=2;i++)cin>>a[i];
l=a[0];
for(int i=0;i<3;i++)
{
if(l<a[i])l=a[i];
}
cout<<l;
return 0;
}