結果

問題 No.1425 Yet Another Cyclic Shifts Sorting
ユーザー SSRSSSRS
提出日時 2021-03-12 21:49:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 1,743 ms
コンパイル使用メモリ 163,580 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-22 12:42:18
合計ジャッジ時間 4,847 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 WA -
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 WA -
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 2 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 2 ms
5,376 KB
testcase_22 AC 67 ms
5,376 KB
testcase_23 AC 19 ms
5,376 KB
testcase_24 AC 16 ms
5,376 KB
testcase_25 AC 70 ms
5,376 KB
testcase_26 AC 84 ms
5,376 KB
testcase_27 AC 73 ms
5,376 KB
testcase_28 AC 85 ms
5,376 KB
testcase_29 AC 27 ms
5,376 KB
testcase_30 AC 19 ms
5,376 KB
testcase_31 AC 85 ms
5,376 KB
testcase_32 AC 26 ms
5,376 KB
testcase_33 AC 5 ms
5,376 KB
testcase_34 AC 29 ms
5,376 KB
testcase_35 AC 79 ms
5,376 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  int ans = 0;
  for (int i = 0; i < N - 1; i++){
    if (A[i] > A[i + 1]){
      ans++;
    }
  }
  cout << ans << endl;
}
0