結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-23 17:27:10 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 420 bytes |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 39,552 KB |
| 最終ジャッジ日時 | 2024-06-23 17:50:19 |
| 合計ジャッジ時間 | 1,420 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
function main(input = ``) {
let lines = input.split('\n');
let nums = lines[0].split(' ').map((val) => parseInt(val));
return (
55 -
nums.reduce((sum, i) => {
return sum + i;
}, 0)
);
}
const { readFileSync, existsSync } = require('fs');
const stdin = '/dev/stdin';
if (existsSync(stdin)) {
const input = readFileSync(stdin, 'utf8');
console.log(main(input));
}
module.exports = main;