結果

問題 No.365 ジェンガソート
ユーザー dgd1724
提出日時 2016-10-20 19:12:48
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 505 bytes
コンパイル時間 1,241 ms
コンパイル使用メモリ 159,064 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 16:42:21
合計ジャッジ時間 2,994 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

//const static double	de_PI	= 3.14159265358979323846;
//const static int	de_MOD	= 1000000007;
//const static int	de_MAX	= 999999999;
//const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int N = 0;
	std::cin >> N;
	std::vector<int> A(N);
	for (int i = 0; i < N; i++) {
		std::cin >> A[i];
	}

	int ans = 0;
	for (int i = 1; i < N; i++) {
		if (A[i] < A[0]) {
			ans++;
		}
	}

	std::cout << ans << std::endl;
}

0