본문 바로가기
백준 문제 해설

백준 16099 Large Sport Facility

by toomanysegtrees 2022. 11. 12.

브 5 100 솔!

https://www.acmicpc.net/problem/16099

 

16099번: Larger Sport Facility

The input consists of several test cases. The first line contains an integer indicating the number of test cases. Each test case follows. Each test case consists of a single line containing 4 integers 1 ≤ lt, wt, le, we ≤ 109 separated by single spaces

www.acmicpc.net

풀이

두 직사각형의 넓이를 비교해준다.

같을 때와 둘 중 하나가 더 클 때 모두 조건문으로 처리해준다.

 

시간 복잡도 : $O(T)$

소요 시간 : 1분

아쉬운 점 : 플 5 풀던 거 마저 풀어야 하는데 오늘 너무 놀았다.

전체적인 감상 : 오늘 Steam R&E 최종 발표 나쁘지 않았다.

/* basic setup {{{ */
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define sz(x) ((int)x.size())
#define all(x) x.begin(),x.end()
#define compress(x) sort(all(x)), x.erase(unique(all(x)), x.end())
#define fast_io ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef const int ci;
const int MOD = 1e9+7;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
/*}}}*/
int t;
ll a, b, c, d, p, q;
int main(){
	fast_io;
	cin>>t;
	while(t--){
		cin>>a>>b>>c>>d;
		p = a*b;
		q = c*d;
		if(p==q) cout<<"Tie\n";
		else if(p > q) cout<<"TelecomParisTech\n";
		else cout<<"Eurecom\n";
	}
}

'백준 문제 해설' 카테고리의 다른 글

백준 18398 HOMWRK  (0) 2022.11.16
백준 13623 Zero or One  (0) 2022.11.15
백준 24860 Counting Antibodies  (0) 2022.11.14
백준 4714 Lunacy  (0) 2022.11.13
백준 3056 007  (0) 2022.11.11
백준 19851 버거운 버거  (0) 2022.11.10
백준 1731 추론  (0) 2022.11.09
백준 4179 불!  (0) 2022.11.08