Solution for DMOPC '19 Contest 6 P0 - Trivial Math in C++


May 4, 2020 0.587570 seconds C++
#include <bits/stdc++.h>
using namespace std;


int main() {
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
		
	int a, b, c;
	
	cin >> a >> b >> c;
	if(a + b > c && a + c > b && b + c > a){
		cout << "yes";
	}else{
		cout << "no";
	}
	

	return 0;
  }

Editorial


No editorial for this problem. :(

Original Problem


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