結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
pirorirori_n712
|
| 提出日時 | 2018-09-19 00:27:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 1,000 ms |
| コード長 | 671 bytes |
| コンパイル時間 | 845 ms |
| コンパイル使用メモリ | 107,392 KB |
| 実行使用メモリ | 19,584 KB |
| 最終ジャッジ日時 | 2024-07-18 08:10:29 |
| 合計ジャッジ時間 | 1,724 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Linq;
using System.Collections.Generic;
class No231{
static void Main(){
var num=Int32.Parse(Console.ReadLine());
var list=new List<int>();
string ans="YES";
for(int i=0;i<num;++i){
var line=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray();
list.Add(line[0]-line[1]*30000);
}
var max=list.Max();
if(max<500000)Console.WriteLine("NO");
else {
Console.WriteLine("YES");
var index=list.IndexOf(max)+1;
for(int i=0;i<6;++i){
Console.WriteLine(index);
}
}
}
}
pirorirori_n712