結果
| 問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
| ユーザー |
|
| 提出日時 | 2021-07-20 23:31:20 |
| 言語 | TypeScript (7.0.2 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 146 ms / 2,000 ms |
| + 734µs | |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 862 ms |
| コンパイル使用メモリ | 200,156 KB |
| 実行使用メモリ | 105,736 KB |
| 最終ジャッジ日時 | 2026-10-10 00:09:15 |
| 合計ジャッジ時間 | 3,627 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"));