Submission #2555507


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
#define debug(x) cerr << #x << ":" << x << endl;
#define OK(ok) cout << (ok ? "Yes" : "No") << endl;
typedef long long ll;

void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail) {
  cin >> head; CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)

const int INF = 1e9 + 1;
const int MOD = 1e9 + 7;
const int MAX_N = 1e5 + 1;

int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  double a,b;
  cin >> a >> b;

  if (a / b == 4.0 / 3.0) {
    cout << "4:3" << endl;
  } else {
    cout << "16:9" << endl;
  }
  
  return 0;
}

Submission Info

Submission Time
Task A - テレビ
User task4233
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1022 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 25
Set Name Test Cases
Sample example_01.txt, example_02.txt, example_03.txt
All 16_9_01.txt, 16_9_02.txt, 16_9_03.txt, 16_9_04.txt, 16_9_05.txt, 16_9_06.txt, 16_9_07.txt, 16_9_08.txt, 16_9_09.txt, 16_9_10.txt, 16_9_max.txt, 4_3_01.txt, 4_3_02.txt, 4_3_03.txt, 4_3_04.txt, 4_3_05.txt, 4_3_06.txt, 4_3_07.txt, 4_3_08.txt, 4_3_09.txt, 4_3_10.txt, 4_3_max.txt, example_01.txt, example_02.txt, example_03.txt
Case Name Status Exec Time Memory
16_9_01.txt AC 1 ms 256 KB
16_9_02.txt AC 1 ms 256 KB
16_9_03.txt AC 1 ms 256 KB
16_9_04.txt AC 1 ms 256 KB
16_9_05.txt AC 1 ms 256 KB
16_9_06.txt AC 1 ms 256 KB
16_9_07.txt AC 1 ms 256 KB
16_9_08.txt AC 1 ms 256 KB
16_9_09.txt AC 1 ms 256 KB
16_9_10.txt AC 1 ms 256 KB
16_9_max.txt AC 1 ms 256 KB
4_3_01.txt AC 1 ms 256 KB
4_3_02.txt AC 1 ms 256 KB
4_3_03.txt AC 1 ms 256 KB
4_3_04.txt AC 1 ms 256 KB
4_3_05.txt AC 1 ms 256 KB
4_3_06.txt AC 1 ms 256 KB
4_3_07.txt AC 1 ms 256 KB
4_3_08.txt AC 1 ms 256 KB
4_3_09.txt AC 1 ms 256 KB
4_3_10.txt AC 1 ms 256 KB
4_3_max.txt AC 1 ms 256 KB
example_01.txt AC 1 ms 256 KB
example_02.txt AC 1 ms 256 KB
example_03.txt AC 1 ms 256 KB