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
#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
// ↓の2つを定義したら使えるようになる | |
#define OPENCV_LIB_DIR "C:/opencv/lib" | |
#define OPENCV_VERSION "245" | |
#ifdef _DEBUG | |
#define __TAIL "d" | |
#else | |
#define __TAIL "" | |
#endif |
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 N (1 << 19) | |
typedef long long int int64; | |
int64 seg[N << 1] = { 0 }; | |
static inline int64 sum(int a, int b, int x, int l, int r) | |
{ |
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 CODE_IQ | |
typedef struct{long _[__GNUC__];}____;int _____=__LINE__,_______; | |
main(int _,char**__,char**___) | |
{ | |
char *______=__VERSION__; | |
while(*___[_______]-*______-sizeof(double)*sizeof(float)+sizeof(char))++_______; | |
___[_______][__FUNCTION__[_____]-__func__[--_____]]=!_____;___[_______][_]+=sizeof(____); | |
for(_____=!!NULL;___[_______][++_____];)___[_______][_____]^=__LDBL_MANT_DIG__/__FLT_RADIX__; | |
return putchar((_____<<=_____)-(**__=((_<<_<<_<<_)-_))*(__CHAR_BIT__-__llvm__)+!printf(++___[_______],_)),______+=putchar(__builtin_popcount(__INT_MAX__)+_++),!puts((char[]){_____>>~-_|**__, *__FUNCTION__+__USER_LABEL_PREFIX__,__FLT_MAX_EXP__-~-__DBL_DIG__,______[-_],EOF[______], !__APPLE__}); |
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; |
OlderNewer