結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2017-08-26 18:03:41 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 64 ms / 5,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 37 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-10-13 00:25:16 |
合計ジャッジ時間 | 3,213 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')let x = i[0].split('.').map((e) => parseInt(e))let y = i[1].split('.').map((e) => parseInt(e))for (let n in x) {if (x[n] > y[n]) {console.log('YES')break}if (x[n] < y[n]) {console.log('NO')break}if (n == 2) {console.log('YES')}}