結果

問題 No.892 タピオカ
ユーザー eat_tamagoeat_tamago
提出日時 2019-10-26 22:38:30
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 600 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 40,448 KB
最終ジャッジ日時 2024-04-21 03:03:25
合計ジャッジ時間 1,169 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
39,808 KB
testcase_01 AC 74 ms
39,552 KB
testcase_02 AC 70 ms
39,424 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 68 ms
39,424 KB
testcase_06 AC 67 ms
39,552 KB
testcase_07 AC 67 ms
39,424 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
    var i = lines[0].split(' ');
    var a = i[0];
    var a1 = i[1];
    var b = i[2];
    var b1 = i[3];
    var c = i[4];
    var c1 = i[5];
    
    var aa = a ** a1;
    var bb = b ** b1;
    var cc = c ** c1;
    
    var x = aa+bb+cc;
    
    if(x%2===0){
        console.log(':-)');
    }else{
        console.log(':-(')
    }
});
0