結果
| 問題 |
No.2414 2 KA 3 KA
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-30 20:45:38 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 8,294 ms |
| コンパイル使用メモリ | 228,276 KB |
| 実行使用メモリ | 39,424 KB |
| 最終ジャッジ日時 | 2025-01-01 00:43:49 |
| 合計ジャッジ時間 | 11,607 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
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);
}