Skip to content

Instantly share code, notes, and snippets.

View PreSoichiSumi's full-sized avatar

PreSoichiSumi PreSoichiSumi

  • A web application engineer in Japan.
  • Tokyo, Japan
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
#define all(c) ((c).begin()), ((c).end())
#define dump(c) cerr << "> " << #c << " = " << (c) << endl;
#define iter(c) __typeof((c).begin())
#define tr(i, c) for (iter(c) i = (c).begin(); i != (c).end(); i++)
#define REP(i, a, b) for (int i = a; i < (int)(b); i++)
#define rep(i, n) REP(i, 0, n)
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int ap=(a+1)*b;
int bp=a*(b+1);
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int L=sc.nextInt();
int H=sc.nextInt();
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Main {
private static final double EPS = 1e-10;
public static int a[];
public static void main(String args[]) {
FastScanner sc = new FastScanner();
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Main {
private static final double EPS = 1e-10;
static int line = Utils.pow(3, 3);
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Main {
private static final double EPS = 1e-10;
public static void main(String args[]) {
#include <iostream>
using namespace std;
int main() {
int a,b,c,d;
cin>>a>>b>>c>>d;
if((a*d)==(b*c)) {
cout << "DRAW" << endl;
}else if(a*d<b*c){
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
cin >> str;
cout << str << "s" << endl;
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
int count = 0;
for (int i = 0; i < 12; i++){
cin >> str;
if (str.find("r") != -1)
count++;