結果

問題 No.322 Geometry Dash
ユーザー kuuso1kuuso1
提出日時 2015-12-15 02:08:35
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,238 bytes
コンパイル時間 4,960 ms
コンパイル使用メモリ 107,780 KB
実行使用メモリ 46,896 KB
最終ジャッジ日時 2023-10-13 17:00:32
合計ジャッジ時間 16,644 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 65 ms
19,564 KB
testcase_02 AC 66 ms
23,708 KB
testcase_03 WA -
testcase_04 AC 178 ms
45,508 KB
testcase_05 AC 184 ms
39,336 KB
testcase_06 AC 186 ms
43,600 KB
testcase_07 AC 194 ms
41,604 KB
testcase_08 AC 193 ms
43,792 KB
testcase_09 AC 182 ms
43,408 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 188 ms
41,516 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 192 ms
43,644 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 196 ms
39,860 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		long ST=T.Sum();
		long SD=D.Sum();
		Pair[] P=new Pair[N];
		for(int i=0;i<N;i++){
			P[i]=new Pair(i+1,T[i]*(SD-D[i]));
		}
		Array.Sort(P,(x,y)=>-x.S.CompareTo(y.S));
		Console.WriteLine(String.Join(" ",P.Select(x=>x.Idx).ToArray()));
		
		
	}
	int N;
	long[] T;
	long[] D;
	public Sol(){
		N=ri();
		T=rla();
		D=rla();
	}
	class Pair{
		public int Idx;
		public long S;
		public Pair(int idx,long s){
			Idx=idx;S=s;
		}
	}



	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0