Solution for Wesley's Anger Contest 3 Problem 1 - Snow Day Predictor in C++


Feb. 13, 2020 0.484066 seconds C++
#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;
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.