View 16-192558.c
#include<stdio.h> | |
#include<time.h> | |
const int monthDay[] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; | |
int getMonthFirestDayOfWeek(int y,int m); | |
int main(int argc, char *argv[]){ | |
int i; |
View vimperatorrc
""ヒントモード | |
set hintchars=ifjklasdweuocvbnm | |
highlight Hint z-index:5000; font-family:monospace; font-size:15px; color:white; background-color:blue; border-color:ButtonShadow; border-width:0px; border-style:solid; padding:0px 1px 0px 1px; position:absolute; text-transform: uppercase; | |
""jk移動の距離 | |
noremap j 10<C-e> | |
noremap k 10<C-y> | |
""C-n C-p移動 | |
noremap <C-n> 5<C-e> |
View gist:7786171
#include<iostream> | |
using namespace std; | |
int p[500000]; | |
int m[300]; | |
int max(int a,int b){ | |
return (a < b) ? b : a; | |
} |
View lifegame.c
#include<stdio.h> | |
#include<time.h> | |
#include<stdlib.h> | |
#define H 10 | |
#define W 10 | |
void init(int cell[][H+2][W+2]); |
View gist:8386554
PROMPT="[%{${fg[gray]}%}%~%{${reset_color}%}] | |
(¥・д・¥) < %(!.#.$)%{${reset_color}%} " |
View gist:9646915
require 'rexml/document' | |
require 'pp' | |
require 'open-uri' | |
require 'date' | |
MARKTAG = "もきゅ"; | |
user = "kimitoboku035" | |
doc = REXML::Document.new(open("http://b.hatena.ne.jp/#{user}/atomfeed?date=#{Time.now.strftime("%Y%m%d")}")); | |
pp "http://b.hatena.ne.jp/#{user}/atomfeed?date=#{Time.now.strftime("%Y%m%d")}" |
View 22-223817.c
#include<stdio.h> | |
int main(void){ | |
int array[3][3]; | |
int i,j; | |
for(i=0;i<3;i++){ | |
for(j=0;j<3;j++){ | |
scanf("%d",&array[i][j]); | |
} | |
} |
View 22-225702.cpp
#include<iostream> | |
using namespace std; | |
int main(void){ | |
int n; | |
cin >> n; | |
cout << n << "yagist.el test" << endl; | |
return 0; |
View lifgame.c
/* | |
学籍番号,氏名:B131820,川上 賢十 | |
*/ | |
#include<stdio.h> | |
#include<time.h> | |
#include<stdlib.h> | |
#define H 10 | |
#define W 10 |
View levenshtein.c
#include<stdio.h> | |
#include<string.h> | |
int min(int a, int b) { | |
return a<b?a:b; | |
} | |
int levenshtein(char *str1,char *str2){ | |
int str1len = strlen(str1); |
OlderNewer