結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
fjafjafja
|
| 提出日時 | 2017-08-23 00:33:03 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 408 bytes |
| コンパイル時間 | 3,253 ms |
| コンパイル使用メモリ | 74,856 KB |
| 実行使用メモリ | 71,784 KB |
| 最終ジャッジ日時 | 2024-10-15 04:29:18 |
| 合計ジャッジ時間 | 15,910 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 5 WA * 8 |
ソースコード
package yukicoder;
import java.util.Scanner;
public class N504
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
long a[]=new long[N];
int ans[]=new int[N];
a[0]=sc.nextLong();
ans[0]=1;
for(int i=1;i<N;i++)
{
a[i]=sc.nextLong();
ans[i]=(a[1]>=a[i])?(ans[i-1]):(ans[i-1]+1);
}
for(int i:ans)
{
System.out.println(i);
}
}
}
fjafjafja