結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2022-07-12 16:16:06 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 108 ms / 3,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 10,451 ms |
コンパイル使用メモリ | 169,024 KB |
実行使用メモリ | 184,292 KB |
最終ジャッジ日時 | 2024-06-23 14:06:31 |
合計ジャッジ時間 | 10,883 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (90 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System; class Program { static void Main() { int cnt = int.Parse(Console.ReadLine()); long ans = 0; for(int i = 0; i < cnt; i++) { var line = long.Parse(Console.ReadLine()); ans += line; } Console.WriteLine(ans); } }