結果
| 問題 | No.2092 Conjugation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-07 22:24:37 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 517 bytes |
| 記録 | |
| コンパイル時間 | 1,515 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 68,692 KB |
| 最終ジャッジ日時 | 2026-03-05 14:45:11 |
| 合計ジャッジ時間 | 11,792 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 2 WA * 16 |
ソースコード
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++]);
}
}
}