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 i, j, k; | |
int count = 0; | |
int max = 1000000; | |
for (i = 2; i <= max; i++) { | |
for (j = 1; j < i; j++) { |
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
#encoding: utf-8 | |
def is_perfect_number(number) | |
sum = 0 | |
for i in 1 .. number | |
if number % i == 0 then | |
sum = sum + i | |
end | |
end | |
if sum == 2 * number then |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $count = 0; | |
my $max = 12000; | |
my $upper = 1/2; | |
my $lower = 1/3; | |
for (my $i = 1; $i <= $max; $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
program timer | |
integer time_max, i | |
i = 0 | |
print *, "This program will tell you when X seconds is up." | |
print *, "Please input X(Real number psease) and push ENTER." | |
read *, time_max | |
!count down |
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
MAX = 100; | |
x = rand(MAX, MAX); | |
s = ones(MAX, 1) * sum(x); | |
%良くないアルゴリズム | |
%for i = 1:MAX | |
% for j = 1:MAX | |
% ans(j, i) = x(j, i)/s(j, i); | |
% end | |
%end |
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
export CLICOLOR=1 | |
export LSCOLORS=CxGxcxdxCxegedabagacad |
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
set nocompatible | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
endif | |
NeoBundle 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/vimfiler' |
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
// | |
// ViewController.m | |
// CountSample | |
// | |
// Created by Shoya Ishimaru on 13/03/30. | |
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved. | |
// | |
#import "ViewController.h" |
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
// | |
// ViewController.m | |
// CountSample | |
// | |
// Created by Shoya Ishimaru on 13/03/30. | |
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved. | |
// | |
#import "ViewController.h" |
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
# Xcode | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 | |
!default.perspectivev3 |
OlderNewer