結果

問題 No.365 ジェンガソート
ユーザー highd
提出日時 2016-10-27 12:19:53
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 53,856 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 04:54:31
合計ジャッジ時間 3,020 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>

int main() {
	typedef std::uint32_t uInt;
	uInt n;
	uInt count=0;
	uInt back = 0;
	std::cin >> n;
	for (uInt i = 0; i < n; i++) {
		uInt value;
		std::cin >> value;
		if (back >= value) {
			count++;
		}
		back = value;
	}
	std::cout << count << std::endl;
	return 0;
}
0