Submission #174278


Source Code Expand

#include<iostream>
#include<cstdio>
#include<cstring>
#include<set>
using namespace std;
int main(){
	int n=0;
	set<int> a;
	for(int i=0;i<n;i++){
		int k=0;
		cin>>k;
		a.insert(k);
	}
	/*高いものを選ぶ*/
	set<int>::iterator ite;
	ite=a.end();
	ite--;
	cout<<*ite<<endl;
	return 0;
}

Submission Info

Submission Time
Task B - 心配性な富豪、ファミリーレストランに行く。
User Kmcode
Language C++ (G++ 4.6.4)
Score 0
Code Size 310 Byte
Status RE
Exec Time 330 ms
Memory 856 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
RE × 15
Set Name Test Cases
All random_1.txt, random_10.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt, small_1.txt, small_2.txt, small_3.txt, small_4.txt, small_5.txt
Case Name Status Exec Time Memory
random_1.txt RE 330 ms 796 KB
random_10.txt RE 247 ms 792 KB
random_2.txt RE 276 ms 788 KB
random_3.txt RE 233 ms 792 KB
random_4.txt RE 232 ms 788 KB
random_5.txt RE 239 ms 792 KB
random_6.txt RE 235 ms 784 KB
random_7.txt RE 242 ms 792 KB
random_8.txt RE 241 ms 796 KB
random_9.txt RE 238 ms 796 KB
sample_1.txt RE 239 ms 800 KB
sample_2.txt RE 245 ms 720 KB
sample_3.txt RE 236 ms 784 KB
small_1.txt RE 246 ms 796 KB
small_2.txt RE 234 ms 788 KB
small_3.txt RE 238 ms 796 KB
small_4.txt RE 255 ms 856 KB
small_5.txt RE 240 ms 784 KB