Skip to content

Commit 46febe0

Browse files
author
DAyamaCTF
authored
Merge pull request #49 from tossy310/ryo_issy/gpajanken
Ryo issy/gpajanken
2 parents e4c6bce + 60c26b2 commit 46febe0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

gpajanken/cpp-ryoissy/SOLUTION

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8; mode: python -*-
2+
3+
## Solution
4+
#c_solution(src='main.c') # -lm -O2 as default
5+
cxx_solution(src='ryoissy-gpajanken.cpp', flags=[]) # -std=c++11 -O2 as default
6+
#java_solution(src='Main.java', encoding='UTF-8', mainclass='Main')
7+
#java_solution(src='Main.java', encoding='UTF-8', mainclass='Main', challenge_cases=[])
8+
#java_solution(src='Main.java', encoding='UTF-8', mainclass='Main', challenge_cases=['10_corner*.in'])
9+
#script_solution(src='main.sh') # shebang line is required
10+
#script_solution(src='main.pl') # shebang line is required
11+
#script_solution(src='main.py') # shebang line is required
12+
#script_solution(src='main.rb') # shebang line is required
13+
#js_solution(src='main.js') # javascript (nodejs)
14+
#hs_solution(src='main.hs') # haskell (stack + ghc)
15+
#cs_solution(src='main.cs') # C# (mono)
16+
17+
## Score
18+
#expected_score(100)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <bits/stdc++.h>
2+
#define MOD 1000000007LL
3+
using namespace std;
4+
typedef long long ll;
5+
typedef pair<int,int> P;
6+
7+
void solve(){
8+
int a,b;
9+
scanf("%d%d",&a,&b);
10+
if(a<b)printf("SATO\n");
11+
if(a>b)printf("KATO\n");
12+
if(a==b)printf("DRAW\n");
13+
}
14+
15+
int main(void){
16+
int t;
17+
scanf("%d",&t);
18+
for(int i=0;i<t;i++){
19+
solve();
20+
}
21+
return 0;
22+
}

0 commit comments

Comments
 (0)