結果

問題 No.365 ジェンガソート
ユーザー ldsyb
提出日時 2016-04-29 22:26:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 62,848 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-04 18:03:53
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	int ans = 0,n,a0;
	cin >> n >> a0;
	for(int i = 1;i < n;i++){
		int a;
		cin >> a;
		if(a0 > a) ans++;
	}
	cout << ans << endl;
}
0