提出 #69507228


ソースコード 拡げる

#include<iostream>
using namespace std;
int a,b,c;
int main()
{
	cin>>a>>b>>c;
	if(a==b or a==c or b==c  and  (a+b>c or a+c>b or b+c>a))cout<<"Yes";
	else cout<<"No";
}

提出情報

提出日時
問題 A - Isosceles
ユーザ huangyuen
言語 C++ 20 (gcc 12.2)
得点 100
コード長 176 Byte
結果 AC
実行時間 1 ms
メモリ 3684 KiB

コンパイルエラー

Main.cpp: In function ‘int main()’:
Main.cpp:7:34: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    7 |         if(a==b or a==c or b==c  and  (a+b>c or a+c>b or b+c>a))cout<<"Yes";
      |                            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 14
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 3468 KiB
example_01.txt AC 1 ms 3528 KiB
example_02.txt AC 1 ms 3588 KiB
hand_00.txt AC 1 ms 3412 KiB
hand_01.txt AC 1 ms 3532 KiB
hand_02.txt AC 1 ms 3684 KiB
hand_03.txt AC 1 ms 3488 KiB
hand_04.txt AC 1 ms 3460 KiB
random_00.txt AC 1 ms 3480 KiB
random_01.txt AC 1 ms 3628 KiB
random_02.txt AC 1 ms 3528 KiB
random_03.txt AC 1 ms 3476 KiB
random_04.txt AC 1 ms 3520 KiB
random_05.txt AC 1 ms 3484 KiB