【ZhengQing】[1749]Forceast!

Problem Description

Loading...

Problem Analysis

An expected-value problem
Didn’t quite get it at first……
After I got it……
Uh……

cpp
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>
int main() {
	double a,b,c,d,x;
	scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
	x=4*a+3*b+2*c+1*d;
	if(x>=3)
		printf("金刚巨何时带我飞!\n");
	else if(x>=2&&x<3)
		printf("仰慕金刚巨!\n");
	else if(x>=1&&x<2)
		printf("调整好心态就可以了!\n");
	else
		printf("小金刚赶紧去刷题,不要再水群了!\n");
	return 0;
}

Problem link: [ZZULI] [1749] Forceast!

This post is licensed under CC BY-NC-SA 4.0. If it helped, or if you have anything to say, the comment box below is open.
Page views —
Unique visitors —

Loading...