Official
A - Square Inequality Editorial by en_translator
If you are new to learning programming and do not know where to start, please try Problem A “Welcome to AtCoder” from practice contest. There you can find a sample code for each language.
This problem can be solved by switching a conditional branch on whether the conditions in the problem statement are satisfied or not.
Sample Code (C++)
#include <bits/stdc++.h>
int ri() {
int n;
scanf("%d", &n);
return n;
}
int main() {
int a = ri();
int b = ri();
int c = ri();
if (a * a + b * b < c * c) puts("Yes");
else puts("No");
return 0;
}
Sample Code (Python)
a, b, c = map(int, input().split())
if a * a + b * b < c * c : print('Yes')
else : print('No')
posted:
last update: