結果

問題 No.2014 Eggs Hatching
ユーザー kisschankisschan
提出日時 2022-08-11 20:58:50
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 473 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-09-22 04:33:14
合計ジャッジ時間 3,092 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。
    var data = input.split('\n').slice(0,-1);
    data = data[0].split(' ')
    let worst = 101;
    for(let i = 0; i < data.length ; i++){
        if(worst > parseInt(data[i])){
            worst = parseInt(data[i]);
        }
    }

    console.log(worst)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0