Skip to content

Instantly share code, notes, and snippets.

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define all(a) (a).begin(),(a).end()
#define pb emplace_back
ll bucket[1<<16];
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define MAX_V 100000
vector<int> G[MAX_V];
void visit(int cur, int prev, vector<pii> &brg, vector<vector<int>> &each_bcc, vector<int> &cmp, stack<int> &roots, stack<int> &S, vector<bool> &inS, vector<int> &order, int &k){
order[cur] = ++k; //頂点を訪れた順に順序付け
# -*- coding: utf-8 -*-
import urllib2
import time
import re
ME='yazaten'
judgeURL = "http://skht777.webcrow.jp/atcoder-api/submissions/list.php?id="+ME
codeURL = "http://skht777.webcrow.jp/atcoder-api/submissions/answer.php?id="
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define pii pair<int,int>
#define all(a) (a).begin(),(a).end()
#define pb push_back
#define INF (1e9+1)
#define MAX_V 17
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define pb push_back
typedef string::const_iterator State;
int ans;
string s;
ll exp(State &begin);
#include "bits/stdc++.h"
#include <array>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
int ans=0;
string s,t;
cin>>s>>t;
if(s.size()>t.size())swap(s,t);
@Yazaten
Yazaten / ware.c
Last active August 29, 2015 14:07
30Cr 分だけ盤面の状態を列挙する
#include<stdio.h>
#include<time.h>
#define DROP_SUM 30
#define Attack_Drop 8 //攻撃色ドロップの数
#define Line_Skill 5 //列強化の覚醒の個数
int AnswerBoard[5][6];
double MaxiScore=-1;
@Yazaten
Yazaten / ware.c
Created October 15, 2014 02:57
ワレプロの倍率計算部分を関数化
#include<stdio.h>
#include <stdlib.h>
#include <time.h>
#define Attack_Drop 15 //攻撃色ドロップの数
#define Line_Skill 5 //列強化の覚醒の個数
@Yazaten
Yazaten / ware.c
Last active August 29, 2015 14:07
(DROP_SUM) C (DROP_ATK) 通り全列挙
#include<stdio.h>
#define DROP_ATK 15
#define DROP_SUM 30
/*************************************************
OneSum numマス目までで、いくつ'1'を配置したかを表す
num 現在何マス目かを表す
loc numマス目までの配置を記録する
*************************************************/