結果

問題 No.1934 Four Fruits
ユーザー LV3zJigVW57oPGy
提出日時 2022-08-15 21:02:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 1,257 ms
コンパイル使用メモリ 158,996 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-02 09:14:03
合計ジャッジ時間 1,801 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b, c;
  cin >>a>>b>>c;
  if(a==b==c){
    cout <<a;
  }
else if((a != b !=c)&&(a!=c)){
  cout << 6-(a+b+c);
}
  else{
    if(a==b){
      cout <<c;
    }
    else if(a==c){
      cout <<b;
    }
    else if(b==c){
      cout << a;
    }
  }
}
0