結果
| 問題 |
No.2414 2 KA 3 KA
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-30 20:43:11 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 8,395 ms |
| コンパイル使用メモリ | 228,160 KB |
| 実行使用メモリ | 41,212 KB |
| 最終ジャッジ日時 | 2024-12-31 17:02:19 |
| 合計ジャッジ時間 | 10,796 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}