#39295: 請益程式碼輸出問題


ChongYi (李崇翊)


#include <iostream>
#include <vector>
using namespace std;
int main(){
  int n, in, time=0, key;
  while(cin >> n){
    key=1;
    time++;
    vector<int>v;
    v[0]=0;
    for(int i=1;i<n+1;i++){
      cin >> in;
      v.push_back(in);
      if(v[i]<=v[i-1]){
        key=0;
        cout << "Case #" << time << ": It is not a B2-Sequence." << endl;
        break;
      }
    }
    if(key==1){
      cout << "Case #" << time << ": It is a B2-Sequence." << endl;
    }
  }
}