結果
| 問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
|
| 提出日時 | 2021-07-20 23:31:20 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 345 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 8,322 ms |
| コンパイル使用メモリ | 230,092 KB |
| 実行使用メモリ | 73,540 KB |
| 最終ジャッジ日時 | 2024-12-31 16:40:10 |
| 合計ジャッジ時間 | 12,404 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
function Main(input:string) {
const oridata=input.split("\n")[1]
const datas=oridata.split(' ').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"));