結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-30 16:09:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 1,000 ms |
| コード長 | 1,050 bytes |
| コンパイル時間 | 3,132 ms |
| コンパイル使用メモリ | 111,260 KB |
| 実行使用メモリ | 27,196 KB |
| 最終ジャッジ日時 | 2024-07-07 07:21:34 |
| 合計ジャッジ時間 | 4,927 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
コンパイルメッセージ
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.Numerics;
using static System.Math;
namespace SortItems
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
var chk = new List<int>();
for (var i = 0; i < n; i++)
{
var x = Console.ReadLine().Split().Select(int.Parse).ToArray();
chk.Add(x[0] - x[1] * 30000);
}
// 最大経験値
var keikentiMax = chk.Max();
// レベルアップに必要な経験値
var levelMax = 30000 * 100;
if (levelMax <= keikentiMax * 6)
{
Console.WriteLine("YES");
for (var i = 1; i <= 6; i++)
{
Console.WriteLine(chk.IndexOf(keikentiMax) + 1);
}
}
else
{
Console.WriteLine("NO");
}
}
}
}