結果

問題 No.892 タピオカ
ユーザー SHOGO501
提出日時 2019-09-27 21:25:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 57,520 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 20:42:28
合計ジャッジ時間 868 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:10: warning: ‘key’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   10 |      key += A^B;
      |      ~~~~^~~~~~

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main(){
    int key,A,B;
   for(int i=0;i<3;i++){
     cin >> A >> B;
     key += A^B;
   }
  if(key%2==0)cout << ":-)" << endl;
  else cout << ":-(" << endl;
}
0