結果
| 問題 |
No.3362 積分!!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-29 15:49:16 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 809 bytes |
| コンパイル時間 | 9,697 ms |
| コンパイル使用メモリ | 171,268 KB |
| 実行使用メモリ | 186,256 KB |
| 最終ジャッジ日時 | 2025-11-17 20:35:21 |
| 合計ジャッジ時間 | 12,096 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 11 WA * 3 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (124 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Formats.Asn1;
using System.Globalization;
using System.Linq;
namespace algorism
{
class Program
{
static void Main()
{
/**/
/**/
string[] input1 = Console.ReadLine().Split(" ");
int N = int.Parse(input1[0]);
int A = int.Parse(input1[1]);
int B = int.Parse(input1[2]);
double ans = 0;
for (int i = 0; i < N + 1; i++)
{
double nanika = double.Parse(Console.ReadLine()) / (i + 1);
ans += (Math.Pow(B, i + 1) - Math.Pow(A, i + 1)) * (nanika);
}
long answer = (long)ans;
Console.WriteLine(answer);
}
}
}