結果
| 問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
|
| 提出日時 | 2021-07-20 23:33:21 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 8,617 ms |
| コンパイル使用メモリ | 228,656 KB |
| 実行使用メモリ | 75,212 KB |
| 最終ジャッジ日時 | 2024-12-31 16:40:40 |
| 合計ジャッジ時間 | 12,856 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 15 |
ソースコード
function Main(input:string) {
const datas=input.split('\n').map(i=>BigInt(i));
const Answer=datas.reduce(function (accum:bigint,current:bigint){
return accum+current
},BigInt(0))
console.log(String(Answer))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));