This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
参考資料 | |
http://ja.wikipedia.org/wiki/%E3%83%AD%E3%83%BC%E3%83%9E%E6%95%B0%E5%AD%97 | |
**************************************************************************/ | |
#include <assert.h> | |
#include <stdio.h> | |
#include <string.h> | |
int arabic_to_roman(int arabic, char *roman); | |
int check(int arabic, const char *roman); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
typedef long double ld; | |
typedef tuple<int, int> duo; | |
const int dx[] = {0, 0, 1, -1, 1, 1, -1, -1}; | |
const int dy[] = {1, -1, 0, 0, 1, -1, 1, -1}; | |
const int Mod = 1000000000 + 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
import random | |
def is_prime(n): | |
i = 2 | |
while i * i <= n: | |
if n % i == 0: | |
return False | |
i += 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
typedef long double ld; | |
typedef tuple<int, int> duo; | |
const int dx[] = {0, 0, 1, -1, 1, 1, -1, -1}; | |
const int dy[] = {1, -1, 0, 0, 1, -1, 1, -1}; | |
const int Mod = 1000000000 + 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
template<typename T> | |
inline T in(){ T x; cin >> x; return x; } | |
int main(){ | |
const int x = in<int>(); | |
const double y = in<double>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(global){ | |
var $comment_form, $chat_form, $user_id, $token, $comment, $text, $comment_submit, $chat_submit, $section; | |
var doc = global["document"]; | |
function create_input(type, name, value){ | |
var $dom = doc.createElement("input"); | |
$dom.type = type; | |
$dom.name = name; | |
$dom.value = value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
enum {A, X, Y, Z, W, B, ERROR}; | |
int map[6][2] = { | |
{X, Y}, | |
{ERROR, Z}, | |
{X, ERROR}, | |
{W, B}, | |
{B, Y}, | |
{Y, X} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
enum {A, X, Y, Z, W, B, ERROR}; | |
int map[6][2] = { | |
{X, Y}, | |
{ERROR, Z}, | |
{X, ERROR}, | |
{W, B}, | |
{B, Y}, | |
{Y, X} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define LIMIT (10000) | |
int main(void) | |
{ | |
int n; | |
int mem[2][10000]; | |
int ct; | |
int under_line; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ↓の2つを定義したら使えるようになる | |
#define OPENCV_LIB_DIR "C:/opencv/lib" | |
#define OPENCV_VERSION "245" | |
#ifdef _DEBUG | |
#define __TAIL "d" | |
#else | |
#define __TAIL "" | |
#endif |
OlderNewer