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
// 9x9, 奇数に使えるパターン 55 byte, 53 chars | |
for(i=81;i--;document.write("■□"[i&1],i%9?"":"<br>")); | |
// 10x10, 偶数に使えるパターン 54 byte, 52 chars | |
for(i=110;i--;document.write(i%11?"□■"[i&1]:"<br>")); | |
var N = 10; | |
var pat = "■□■"; | |
for (i = 0; i < N; ++i) { |
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
var $ = function (id) { return document.getElementById(id); }; | |
var makeDraw = function (draw) { | |
return function (ev) { | |
var canvas = $('ichimatsu'); | |
if (canvas.getContext) { | |
draw(canvas.getContext('2d')); | |
} else { | |
alert('canvas not supported'); | |
} |
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
(define (fact n) | |
(if (= 0 n) | |
1 | |
(* n (fact (- n 1))))) | |
(fact 5) | |
(define (fact n) | |
(define (iter n result) | |
(if (= 0 n) |
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
_={__:![]+![],_:-~[],$:-~-~[],$_:-~!![]-~[],$$:~!![]*~!![],$$_:~!""*~!""+!"",$$$:~!""*~!""-~!"",$$$_:~!""*~!""*-~!""+~[],$$$$:~!""*~!""*-~!"",$$$$_:-~!""*(~!""*~!""+!"")-!""};$={_:""+!"",$:""+![],_$:""+{},$_:""+{}[{}]};__=$._$[_.$$_]+$._$[_._]+$.$_[_._]+$.$[_.$_]+$._[_.__]+$._[_._]+$._[_.$]+$._$[_.$$_]+$._[_.__]+$._$[_._]+$._[_._];$$=$.$[_._]+$.$[_.$]+$._[_.$_]+$._[_._]+$._[_.__];$_=$.$_[_.$$_]+$._[_.__]+(""+-_._)[_.__]+$._$[_.$$_]+$._$[_._]+$.$[_.$]+$.$[_.$]+$._[_.$_]+(/./[__]+"")[_.$$$*_.$-_._]+$._[_.$_];({}[__][__])($$+"($_);")(); |
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 (MAX) { | |
return ((function (f) { | |
return (function (p) { | |
return f(function (arg) { | |
return (p(p))(arg); }); })(function (p) { | |
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 (MAX) | |
((function (f) | |
(function (p) | |
f(function (arg) | |
(p(p))(arg))) | |
(function ( |
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 -*- | |
require 'rubygems' | |
require 'highline/import' | |
require 'mechanize' | |
top_page_url = URI.parse('http://uppi.it-college.ac.jp/') | |
username = ask("Enter your username: "){|q| q.echo = true } | |
password = ask("Enter your password: "){|q| q.echo = '*' } | |
agent = Mechanize.new |
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> | |
int main(void) { | |
int score; | |
do { | |
printf("テストの点数を入力してください\n"); | |
scanf("%d", &score); | |
} while (0 > score || 100 < score); |
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> | |
int olympics(int year); | |
int main(void) { | |
int year; | |
scanf("%d", &year); | |
if (olympics(year)) { |
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> | |
int main(void) { | |
int numbers[10]; | |
int i; | |
for (i = 0; i < 10; i++) { | |
scanf("%d", &numbers[i]); | |
} |
OlderNewer