結果
問題 |
No.1475 時計の歯車Easy
|
ユーザー |
|
提出日時 | 2022-11-21 04:02:41 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 70 ms / 2,000 ms |
コード長 | 424 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 39,552 KB |
最終ジャッジ日時 | 2024-09-21 23:50:59 |
合計ジャッジ時間 | 6,024 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"));