結果

問題 No.516 赤と青の風船
ユーザー ninoinui
提出日時 2020-01-21 22:12:49
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 65,080 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 08:41:53
合計ジャッジ時間 1,058 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main() {
      | ^~~~

ソースコード

diff #

#include <iostream>
main() {
  std::string A,B,C;
  std::cin>>A>>B>>C;
  std::cout<<(A==B||A==C?A:B)<< "\n";
}
0