結果

問題 No.322 Geometry Dash
ユーザー pekempeypekempey
提出日時 2015-12-15 00:55:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 642 bytes
コンパイル時間 1,032 ms
コンパイル使用メモリ 106,240 KB
実行使用メモリ 46,060 KB
最終ジャッジ日時 2024-04-26 04:14:33
合計ジャッジ時間 7,918 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
25,392 KB
testcase_01 AC 30 ms
25,644 KB
testcase_02 AC 31 ms
25,260 KB
testcase_03 AC 31 ms
25,392 KB
testcase_04 AC 116 ms
41,232 KB
testcase_05 AC 118 ms
42,984 KB
testcase_06 AC 124 ms
42,668 KB
testcase_07 AC 125 ms
44,660 KB
testcase_08 AC 122 ms
43,208 KB
testcase_09 AC 119 ms
43,240 KB
testcase_10 AC 120 ms
43,412 KB
testcase_11 AC 127 ms
44,468 KB
testcase_12 AC 128 ms
42,912 KB
testcase_13 AC 130 ms
42,964 KB
testcase_14 AC 126 ms
44,480 KB
testcase_15 AC 128 ms
42,576 KB
testcase_16 AC 132 ms
42,992 KB
testcase_17 AC 133 ms
43,516 KB
testcase_18 AC 135 ms
45,848 KB
testcase_19 AC 127 ms
44,792 KB
testcase_20 AC 132 ms
44,932 KB
testcase_21 AC 134 ms
43,228 KB
testcase_22 AC 130 ms
45,592 KB
testcase_23 AC 135 ms
46,060 KB
testcase_24 AC 133 ms
45,140 KB
testcase_25 AC 136 ms
42,972 KB
testcase_26 AC 133 ms
43,956 KB
testcase_27 AC 135 ms
43,888 KB
testcase_28 AC 132 ms
44,052 KB
testcase_29 AC 118 ms
41,704 KB
testcase_30 AC 128 ms
37,888 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;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
	class Program
	{
		static void Main(string[] args)
		{
			new Program().Solve();
		}

		void Solve()
		{
			int n = int.Parse(Console.ReadLine());
			int[] T = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
			int[] D = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
			int[] index = Enumerable.Range(0, n).ToArray();
			Array.Sort(index, (i, j) => T[j] * D[i] - T[i] * D[j]);
			Console.WriteLine(string.Join(" ", index.Select(x => x + 1)));
		}
	}
}
0