[Zhengqing] [1754] Chowhound! Chowhound!! Chowhound!!!

Problem Description

Loading...

Problem Analysis

A very simple kind of comparison~

cpp
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include<stdio.h>
int main() {
	long int x;
	double a,b;
	scanf("%ld",&x);
	a=(x+x)*0.8;
	b=x+x-10;
	if(a<b)
		printf("1\n");
	else
		printf("2\n");
	return 0;
}

Problem link: [ZZULI][1754]Chowhound! Chowhound!! Chowhound!!!

Loading...