結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2021-07-20 23:27:03 |
言語 | TypeScript (5.7.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 8,309 ms |
コンパイル使用メモリ | 228,520 KB |
実行使用メモリ | 75,708 KB |
最終ジャッジ日時 | 2024-12-31 16:39:56 |
合計ジャッジ時間 | 12,379 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 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(Answer) } Main(require("fs").readFileSync("/dev/stdin", "utf8")); //Main("3\n77144313318378908 540010193228652352")