Skip to content

Instantly share code, notes, and snippets.

#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++) {
#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
#!/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++) {
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
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
export CLICOLOR=1
export LSCOLORS=CxGxcxdxCxegedabagacad
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'
//
// ViewController.m
// CountSample
//
// Created by Shoya Ishimaru on 13/03/30.
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved.
//
#import "ViewController.h"
//
// ViewController.m
// CountSample
//
// Created by Shoya Ishimaru on 13/03/30.
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved.
//
#import "ViewController.h"
# Xcode
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3