結果

問題 No.2414 2 KA 3 KA
ユーザー Fullmoon8507Fullmoon8507
提出日時 2023-10-30 20:45:38
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 5,520 ms
コンパイル使用メモリ 150,124 KB
実行使用メモリ 37,584 KB
最終ジャッジ日時 2023-10-30 20:45:47
合計ジャッジ時間 8,518 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
37,584 KB
testcase_01 AC 66 ms
37,584 KB
testcase_02 AC 66 ms
37,584 KB
testcase_03 AC 66 ms
37,584 KB
testcase_04 AC 67 ms
37,584 KB
testcase_05 AC 66 ms
37,584 KB
testcase_06 AC 66 ms
37,584 KB
testcase_07 AC 67 ms
37,584 KB
testcase_08 AC 66 ms
37,584 KB
testcase_09 AC 66 ms
37,584 KB
testcase_10 AC 67 ms
37,584 KB
testcase_11 AC 65 ms
37,584 KB
testcase_12 AC 71 ms
37,584 KB
testcase_13 AC 66 ms
37,584 KB
testcase_14 AC 66 ms
37,584 KB
testcase_15 AC 66 ms
37,584 KB
testcase_16 AC 73 ms
37,584 KB
testcase_17 AC 66 ms
37,584 KB
testcase_18 AC 66 ms
37,584 KB
testcase_19 AC 66 ms
37,584 KB
testcase_20 AC 66 ms
37,584 KB
testcase_21 AC 66 ms
37,584 KB
testcase_22 AC 71 ms
37,584 KB
testcase_23 AC 65 ms
37,584 KB
testcase_24 AC 67 ms
37,584 KB
testcase_25 AC 67 ms
37,584 KB
testcase_26 AC 68 ms
37,584 KB
testcase_27 AC 68 ms
37,584 KB
testcase_28 AC 66 ms
37,584 KB
testcase_29 AC 66 ms
37,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

declare var require: any;

let lines: string[] = require("fs").readFileSync("/dev/stdin", "utf8").split("\n");

let buf: string[] = lines[0].split(" ");
let height: number = parseInt(buf[0]);
let width: number = parseInt(buf[1]);
let depth: number = parseInt(buf[2]);

let X: number = (height * width + width * depth + depth * height) * 2;
let Y: number = height * width * depth;

if(X > Y){
    console.log(2);
} else {
    console.log(3);
}
0