提出 #22038994


ソースコード 拡げる

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std;
void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     @hamayanhamayan0
    /   \     | |
    /   / ̄ ̄ ̄ ̄/  |
  __(__ニつ/     _/ .| .|____
     \/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/














int A, B, C;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> A >> B >> C;

	int lft = A * A + B * B;
	int rht = C * C;

	cout << ((lft < rht) ? "Yes" : "No") << endl;
}





提出情報

提出日時
問題 A - Square Inequality
ユーザ hamayanhamayan
言語 C++ (GCC 9.2.1)
得点 100
コード長 1544 Byte
結果 AC
実行時間 7 ms
メモリ 3640 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 21
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
handmade_00.txt AC 7 ms 3592 KiB
handmade_01.txt AC 5 ms 3584 KiB
handmade_02.txt AC 2 ms 3640 KiB
handmade_03.txt AC 2 ms 3516 KiB
random_00.txt AC 3 ms 3524 KiB
random_01.txt AC 2 ms 3576 KiB
random_02.txt AC 2 ms 3508 KiB
random_03.txt AC 2 ms 3460 KiB
random_04.txt AC 3 ms 3512 KiB
random_05.txt AC 3 ms 3528 KiB
random_06.txt AC 4 ms 3584 KiB
random_07.txt AC 2 ms 3600 KiB
random_08.txt AC 2 ms 3524 KiB
random_09.txt AC 3 ms 3508 KiB
random_10.txt AC 2 ms 3600 KiB
random_11.txt AC 2 ms 3596 KiB
random_12.txt AC 2 ms 3512 KiB
random_13.txt AC 2 ms 3528 KiB
sample_01.txt AC 2 ms 3512 KiB
sample_02.txt AC 2 ms 3524 KiB
sample_03.txt AC 2 ms 3496 KiB