結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
fujita
|
| 提出日時 | 2023-05-09 15:33:06 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| コード長 | 736 bytes |
| コンパイル時間 | 8,270 ms |
| コンパイル使用メモリ | 164,644 KB |
| 実行使用メモリ | 183,972 KB |
| 最終ジャッジ日時 | 2024-11-26 02:10:39 |
| 合計ジャッジ時間 | 10,704 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (97 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;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
var str = Console.ReadLine().Split(" ");
int[] strings = new int[N];
int sum = 0 , f = 0 , anscount = 0;
for (int i = 0; i < N; i++)
{
strings[i] = int.Parse(str[i]);
sum += strings[i];
}
f = sum / 10;
for (int j = 0; j < N; j++)
{
if (strings[j] <= f)
{
anscount += 30;
}
}
Console.WriteLine(anscount);
}
}
}
fujita