Nathan Coulas

Wesley's Anger Contest 3 Problem 1 - Snow Day Predictor

wac3p1 CPP17 13 Feb, 2020 0.484s 3 points

Source Code

#include <iostream>
#include <string>
using namespace std;

int main(){
	int T, D, P;
	int c = 0;
	cin >> T >> D >> P;

	if(T < -40){
		c++;
	}

	if(D >= 15){
		c++;
	}

	if(P > 50){
		c++;
	}

	if(c >= 2){
		cout << "YES" << endl;
	}else{
		cout << "NO" << endl;
	}



	return 0;
}