結果

問題 No.750 Frac #1
ユーザー yurarayurara
提出日時 2019-04-11 23:44:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 552 bytes
コンパイル時間 2,324 ms
コンパイル使用メモリ 104,580 KB
実行使用メモリ 25,868 KB
最終ジャッジ日時 2023-09-27 11:06:57
合計ジャッジ時間 6,318 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
25,820 KB
testcase_01 AC 65 ms
23,800 KB
testcase_02 AC 67 ms
25,868 KB
testcase_03 AC 67 ms
23,708 KB
testcase_04 AC 67 ms
23,808 KB
testcase_05 AC 68 ms
23,776 KB
testcase_06 AC 66 ms
25,792 KB
testcase_07 AC 67 ms
25,748 KB
testcase_08 AC 66 ms
23,744 KB
testcase_09 AC 66 ms
23,832 KB
testcase_10 AC 64 ms
23,696 KB
testcase_11 AC 66 ms
23,780 KB
testcase_12 AC 66 ms
23,792 KB
testcase_13 AC 64 ms
23,820 KB
testcase_14 AC 67 ms
23,780 KB
testcase_15 AC 63 ms
23,872 KB
testcase_16 AC 65 ms
23,772 KB
testcase_17 AC 69 ms
25,868 KB
testcase_18 AC 65 ms
23,812 KB
testcase_19 AC 66 ms
23,756 KB
testcase_20 AC 66 ms
23,748 KB
testcase_21 AC 65 ms
25,712 KB
testcase_22 AC 63 ms
23,712 KB
testcase_23 AC 67 ms
25,680 KB
testcase_24 AC 65 ms
23,756 KB
testcase_25 AC 67 ms
25,764 KB
testcase_26 AC 65 ms
23,764 KB
testcase_27 AC 66 ms
23,756 KB
testcase_28 AC 64 ms
23,924 KB
testcase_29 AC 67 ms
21,876 KB
testcase_30 AC 69 ms
25,868 KB
testcase_31 AC 69 ms
21,792 KB
testcase_32 AC 68 ms
23,788 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.Collections.Generic;
using System.Linq;

public class Program
{
    public static void Main()
    {
        var ct = int.Parse(Console.ReadLine());
        var inputs = new List<List<double>>();

        for (var i = 0; i < ct; i++)
            inputs.Add(Console.ReadLine().Split(' ').Select(s => double.Parse(s)).ToList());

        inputs.Sort((a, b) => (a[0] / a[1]) < (b[0] / b[1]) ? 1 : -1);

        foreach ( var input in inputs )
            Console.WriteLine("{0} {1}", input[0], input[1]);

        return;
    }
}
0