結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2019-04-09 22:27:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 53,588 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 04:37:44 |
合計ジャッジ時間 | 3,365 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 25 |
ソースコード
#include <iostream> using namespace std; int main() { int n, abef, aaft, ans = 0; cin >> n >> abef; for(int i = 1; i < n; i++){ cin >> aaft; if(abef > aaft) ans += 1; } cout << ans << endl; return 0; }