結果

問題 No.1934 Four Fruits
ユーザー 👑 obakyan
提出日時 2022-05-14 00:37:48
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-22 05:24:21
合計ジャッジ時間 831 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = io.read("*n", "*n", "*n")
if a == b and b == c then
  print(a)
elseif a ~= b and a ~= c and b ~= c then
  print(6 - a - b - c)
else
  if a == b then
    print(c)
  elseif b == c then
    print(a)
  else
    print(b)
  end
end
0