結果

問題 No.1934 Four Fruits
ユーザー #leucobird
提出日時 2022-06-19 22:43:37
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 766 ms
コンパイル使用メモリ 69,524 KB
最終ジャッジ日時 2025-01-29 23:25:39
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
int main(void) {
  
  int32_t a, b, c;
  std::cin >> a >> b >> c;
  
  if (a == b && b == c) std::cout << a << std::endl;
  else if (a == b) std::cout << c << std::endl;
  else if (b == c) std::cout << a << std::endl;
  else if (c == a) std::cout << b << std::endl;
  else if (a != b && b != c && c != a) std::cout << 6 - (a+b+c) << std::endl;
  return 0;
}
0