时间转换
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
scanf("%d %d %d %d",&a,&b,&c,&d);
e=c-a;
f=d-b;
if(f<0){
e--;
f+=60;
}
printf("%d %d",e,f);
return 0;
}
#include<iostream>
#include<math.h>
#define pi 3.141593
int main(){
int n;
scanf("%d",&n);
if(n==1) {printf("I love luogu!");return 0;}
if(n==2) {printf("%d %d\n",2+4,10-2-4);return 0;}
if(n==3) {printf("%d\n%d\n%d\n",14 / 4, 14 / 4 * 4, 14 - 14 / 4 * 4);return 0;}
if(n==4) {printf("%.3lf\n",166.667);return 0;}
if(n==5) {printf("%d\n",(220+260)/(12+20));return 0;}
if(n==6) {std::cout<<10.8167<<std::endl;return 0;}
if(n==7) {printf("%d\n%d\n%d\n",100+10,100+10-20,0);reruen 0;}
if(n == 8) { printf("31.4159\n78.5398\n523.599\n"); return 0;}
if(n == 9) { printf("%d\n", (((1 + 1) * 2 + 1) * 2 + 1) * 2); return 0;}
if(n == 10) { printf("%d\n", 9); return 0; }
if(n == 11) { printf("33.3333\n"); return 0; }
if(n == 12) { printf("%d\n%c\n", 'M' - 'A' + 1, 'A' + 18 - 1); return 0; }
if(n == 13) { printf("%d\n", 16); return 0; }
if(n == 14) { printf("%d\n", 50); return 0;}
}
#include<stdio.h>
int main(){
double t;
int n;
scanf("%lf %d",&t,&n);
printf("%.3lf\n%d",t/n*1.0,n*2);
return 0;
}