結果

問題 No.750 Frac #1
ユーザー ngtkanangtkana
提出日時 2020-02-10 12:30:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 543 bytes
コンパイル時間 988 ms
コンパイル使用メモリ 111,164 KB
実行使用メモリ 25,828 KB
最終ジャッジ日時 2024-04-08 12:56:17
合計ジャッジ時間 3,621 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
25,828 KB
testcase_01 AC 35 ms
25,828 KB
testcase_02 AC 35 ms
25,828 KB
testcase_03 AC 35 ms
25,828 KB
testcase_04 AC 35 ms
25,828 KB
testcase_05 AC 37 ms
25,828 KB
testcase_06 AC 38 ms
25,828 KB
testcase_07 AC 36 ms
25,828 KB
testcase_08 AC 35 ms
25,572 KB
testcase_09 AC 37 ms
25,828 KB
testcase_10 AC 38 ms
25,828 KB
testcase_11 AC 35 ms
25,828 KB
testcase_12 AC 37 ms
25,828 KB
testcase_13 AC 37 ms
25,828 KB
testcase_14 AC 36 ms
25,828 KB
testcase_15 AC 35 ms
25,572 KB
testcase_16 AC 37 ms
25,828 KB
testcase_17 AC 38 ms
25,828 KB
testcase_18 AC 36 ms
25,828 KB
testcase_19 AC 36 ms
25,828 KB
testcase_20 AC 37 ms
25,572 KB
testcase_21 AC 35 ms
25,828 KB
testcase_22 AC 36 ms
25,828 KB
testcase_23 AC 38 ms
25,828 KB
testcase_24 AC 36 ms
25,828 KB
testcase_25 AC 36 ms
25,828 KB
testcase_26 AC 37 ms
25,828 KB
testcase_27 AC 36 ms
25,828 KB
testcase_28 AC 35 ms
25,572 KB
testcase_29 AC 36 ms
25,828 KB
testcase_30 AC 39 ms
25,828 KB
testcase_31 AC 36 ms
25,828 KB
testcase_32 AC 39 ms
25,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;

static class NagataKanaIsAGenius {
    public static void Main() {
        foreach(var(x,y) in Enumerable.Range(0,int.Parse(Console.ReadLine()))
            .Select(_=>{
                int[]ab=Console.ReadLine().Split().Select(int.Parse).ToArray();
                return new Tuple<int,int>(ab[0],ab[1]);
            })
            .OrderBy(x=>-(double)x.Item1/x.Item2)
            .ToArray()
        )
        {
            Console.WriteLine($"{x} {y}");
        }
    }
}
0