結果
問題 |
No.2407 Bouns 2.0
|
ユーザー |
|
提出日時 | 2023-08-20 09:58:46 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 673 bytes |
コンパイル時間 | 241 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 38,784 KB |
最終ジャッジ日時 | 2024-11-30 11:24:52 |
合計ジャッジ時間 | 2,921 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
function Main(input) { // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。 var data = input.split("\n") var first_line = data[0].split(" ") // var second_line = data[1] // var c = parseInt(first_line[0]) + parseInt(first_line[1]) // console.log(first_line) let amount = parseInt(first_line[0])+parseInt(first_line[1]) amount += parseInt(first_line[0])*parseFloat(first_line[2])+ parseInt(first_line[1])*parseFloat(first_line[2]) console.log(amount) } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));