結果
| 問題 | No.2092 Conjugation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-07 22:24:12 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 517 bytes |
| 記録 | |
| コンパイル時間 | 1,903 ms |
| コンパイル使用メモリ | 83,620 KB |
| 実行使用メモリ | 50,660 KB |
| 最終ジャッジ日時 | 2026-07-26 02:50:54 |
| 合計ジャッジ時間 | 6,733 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 18 |
ソースコード
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] sum = new int[(int)1e5+1];
while(N-->0){
int A = sc.nextInt();
sum[A]++;
}
for(int i=(int)1e5-1;i>0;i++){
sum[i] += sum[i+1];
}
int p = 1;
while(p<=1e5){
if(sum[p]==0)
break;
System.out.println(sum[p++]);
}
}
}