AtCoder Beginner Contest 030

Submission #1356239

Source codeソースコード

#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>

#define INF 999999999

#define llong long long

#define pb(a) push_back(a)

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());

using namespace std;

typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a,b,c,d;
  cin >>a>>b>>c>>d;
  double x,y;
  x=(double)b/a;
  y=(double)d/c;
  cout << (x==y?"DRAW":(x<y?"AOKI":"TAKAHASI"))<<endl;
  return 0;
}

Submission

Task問題 A - 勝率計算
User nameユーザ名 mizunomi32
Created time投稿日時
Language言語 C++ (Clang 3.8.0)
Status状態 WA
Score得点 0
Source lengthソースコード長 838 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
Sample - subtask0_sample_01.txt,subtask0_sample_02.txt,subtask0_sample_03.txt
All 0 / 100 0.txt,1.txt,10.txt,11.txt,12.txt,13.txt,14.txt,15.txt,16.txt,17.txt,18.txt,19.txt,2.txt,20.txt,21.txt,22.txt,23.txt,24.txt,25.txt,26.txt,27.txt,28.txt,29.txt,3.txt,4.txt,5.txt,6.txt,7.txt,8.txt,9.txt,subtask0_sample_01.txt,subtask0_sample_02.txt,subtask0_sample_03.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
0.txt AC 1 ms 256 KB
1.txt WA
10.txt WA
11.txt AC 1 ms 256 KB
12.txt AC 1 ms 256 KB
13.txt WA
14.txt AC 1 ms 256 KB
15.txt AC 1 ms 256 KB
16.txt WA
17.txt AC 1 ms 256 KB
18.txt AC 1 ms 256 KB
19.txt WA
2.txt AC 1 ms 256 KB
20.txt AC 1 ms 256 KB
21.txt AC 1 ms 256 KB
22.txt WA
23.txt AC 1 ms 256 KB
24.txt AC 1 ms 256 KB
25.txt WA
26.txt AC 1 ms 256 KB
27.txt AC 1 ms 256 KB
28.txt WA
29.txt AC 1 ms 256 KB
3.txt AC 1 ms 256 KB
4.txt WA
5.txt AC 1 ms 256 KB
6.txt AC 1 ms 256 KB
7.txt WA
8.txt AC 1 ms 256 KB
9.txt AC 1 ms 256 KB
subtask0_sample_01.txt AC 1 ms 256 KB
subtask0_sample_02.txt WA
subtask0_sample_03.txt AC 1 ms 256 KB