結果

問題 No.892 タピオカ
ユーザー kafuka97kafuka97
提出日時 2019-09-27 21:22:50
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 325 bytes
コンパイル時間 1,458 ms
コンパイル使用メモリ 165,744 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-25 01:26:19
合計ジャッジ時間 2,061 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:14:12: warning: 'sum' is used uninitialized [-Wuninitialized]
   14 |         sum+=a;
      |         ~~~^~~
main.cpp:11:9: note: 'sum' was declared here
   11 |     i64 sum,a;
      |         ^~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

typedef int64_t i64;
typedef uint64_t ui64;

const int inf=1073741823;
const i64 llinf=4611686018427387903LL;

int main(void){
    i64 sum,a;
    for(int i=0;i<3;i++){
        scanf("%lli%*lli",&a);
        sum+=a;
    }
    printf("%s\n",sum%2==0?":-)":":-(");
    return 0;
}
0