結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
ontama_12
|
| 提出日時 | 2016-09-29 16:29:59 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 478 bytes |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 41,720 KB |
| 最終ジャッジ日時 | 2024-10-12 23:57:09 |
| 合計ジャッジ時間 | 1,826 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 17 |
ソースコード
/////////////////////////////////No.395 永遠の17歳
//入力文字読み取り
var inputall = require('fs').readFileSync('/dev/stdin', 'utf8').trim();
//数値化
var input_int = Number(inputall);
//8進数より数字の小さい進数は2進数以外ないので
//○進数で○は10になるので17を表示するのは入力数値-7する
if (inputint < 15) {
console.log(-1)
} else {
console.log(input_int-7)
}
ontama_12