結果

問題 No.365 ジェンガソート
ユーザー shinwisteria
提出日時 2017-04-01 11:14:33
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 3,396 ms
コンパイル使用メモリ 74,384 KB
実行使用メモリ 48,740 KB
最終ジャッジ日時 2024-07-07 18:46:28
合計ジャッジ時間 16,314 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Jengasort {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int[] a = new int[N];
		for(int i = 0;i < N;i++){
			a[i] = s.nextInt();
		}
		s.close();
		int count = 0;
		for(int i = 1;i < N;i++){
			if(a[i] < a[0]){
				count++;
			}
		}
		System.out.println(count);

	}

}
0