結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
the10hours
|
| 提出日時 | 2015-06-09 10:15:27 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 5,000 ms |
| コード長 | 773 bytes |
| コンパイル時間 | 2,855 ms |
| コンパイル使用メモリ | 102,912 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-11-16 20:40:25 |
| 合計ジャッジ時間 | 4,013 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace yukicoder
{
class yc
{
static void Main()
{
int steal, sum = 0, cout = 0;
int N = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] n = new int[N];
for (int i = 0; i < N; i++)
{
n[i] = int.Parse(str[i]);
sum += n[i];
}
steal = sum / 10;
for (int i = 0; i < N; i++)
{
if (n[i] <= steal)
{
cout++;
}
}
Console.WriteLine(cout * 30);
}
}
}
the10hours