AtCoder Beginner Contest 009

Submission #3974741

Source codeソースコード

#include<iostream>
#include<algorithm>
using namespace std;
int a[110];
int main(){
  int n,e;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a[i];
    sort(a,a+n);
    reverse(a,a+n);
  }
  for(int i=0;i<n;i++){
    e=a[i+1];
    int f=a[i];
    if(e!=f){
      break;
    }
  }
  cout<<e<<endl;
}

Submission

Task問題 A - 引越し作業
User nameユーザ名 shiumai1740
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 RE
Score得点 0
Source lengthソースコード長 316 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 large_1000.txt,large_997.txt,large_998.txt,large_999.txt,random_148.txt,random_155.txt,random_198.txt,random_362.txt,random_403.txt,random_667.txt,random_795.txt,random_811.txt,random_85.txt,random_959.txt,sample_1.txt,sample_2.txt,sample_3.txt,small_10.txt,small_11.txt,small_3.txt,small_4.txt,small_6.txt,small_7.txt,small_8.txt,small_9.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
large_1000.txt RE
large_997.txt RE
large_998.txt RE
large_999.txt RE
random_148.txt WA
random_155.txt WA
random_198.txt WA
random_362.txt WA
random_403.txt WA
random_667.txt WA
random_795.txt WA
random_811.txt WA
random_85.txt WA
random_959.txt RE
sample_1.txt WA
sample_2.txt WA
sample_3.txt WA
small_10.txt WA
small_11.txt WA
small_3.txt WA
small_4.txt WA
small_6.txt WA
small_7.txt WA
small_8.txt WA
small_9.txt WA