Submission #20525690


Source Code Expand

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define INF 2147483647
#define ft first
#define sec second
#define pr pair<int,int>
#define ISCC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int t ,n ,m ,a ,b ,c;
int main() 
{
	cin >> n;
	int ans = INF;
	for(int i=0 ;i<n ;i++)
	{
		cin >> a >> b >> c;
		if(c > a) ans = min(ans ,b);
	}
	if(ans != INF) cout << ans << '\n';	
	else cout << "-1\n";
}

Submission Info

Submission Time
Task B - Play Snuke
User ck1080012
Language C++ (GCC 9.2.1)
Score 200
Code Size 461 Byte
Status AC
Exec Time 105 ms
Memory 3636 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 18
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_small.txt, 05_small.txt, 06_small.txt, 07_small.txt, 08_small.txt, 09_large.txt, 10_large.txt, 11_large.txt, 12_large.txt, 13_large.txt, 14_ng.txt, 15_ng.txt, 16_max.txt, 17_max.txt, 18_max.txt
Case Name Status Exec Time Memory
01_sample.txt AC 3 ms 3408 KiB
02_sample.txt AC 4 ms 3584 KiB
03_sample.txt AC 3 ms 3568 KiB
04_small.txt AC 2 ms 3632 KiB
05_small.txt AC 2 ms 3404 KiB
06_small.txt AC 2 ms 3552 KiB
07_small.txt AC 2 ms 3596 KiB
08_small.txt AC 2 ms 3440 KiB
09_large.txt AC 40 ms 3396 KiB
10_large.txt AC 54 ms 3524 KiB
11_large.txt AC 49 ms 3564 KiB
12_large.txt AC 49 ms 3632 KiB
13_large.txt AC 22 ms 3568 KiB
14_ng.txt AC 4 ms 3396 KiB
15_ng.txt AC 45 ms 3564 KiB
16_max.txt AC 94 ms 3568 KiB
17_max.txt AC 93 ms 3528 KiB
18_max.txt AC 105 ms 3636 KiB