結果
| 問題 | No.1475 時計の歯車Easy |
| ユーザー |
|
| 提出日時 | 2022-11-21 04:02:41 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 52,828 KB |
| 最終ジャッジ日時 | 2026-04-10 05:19:36 |
| 合計ジャッジ時間 | 6,631 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 |
ソースコード
function arrInt(arr) {
return arr.map(str => parseInt(str, 10));
}
function Main(input) {
let src = input.split("\n")
let n = parseInt(src[0]);
for (let i = 1; i <= n; i++) {
let line = arrInt(src[i].split(" "));
line.shift();
line.sort((a, b) => b - a);
let result = line.join(" ");
console.log(result);
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));