Skip to content

Instantly share code, notes, and snippets.

View idoushiki's full-sized avatar

Idoushiki idoushiki

  • Japan
View GitHub Profile
<script>
var a=[1,3,5,7];
var b=5;
var i=0;
int i=0;
char a[7];
char *b[]={"おばか","アホ","まぬけ"};
scanf("%s",a);
for(i=0;i<=2;i++)
if(strcmp(a,b[i])==0)printf("ばかやろう");
#include <stdio.h>
int main(void){
int l,h,k,x;
int a[]={1,5,12,34,999};
h=5;
l=0;
scanf("%d",&x);
#include <stdio.h>
int main(void){
int i,j,w,aa,fl=0;
int a[]={4,2,7,41,98,9,3,222,1,11};
for(i=0;i<=9;i++){
for(j=9;j>=i+1;j--){
<! DOCTYPE html>
<html>
<head>
<script src="common.js"></script>
<script src="main.js"></script>
</head>
<body>
class SampleController < ApplicationController
def index
end
def index
@user = Hash.new
@user[:name] = 'obaka'
end
end
@idoushiki
idoushiki / Pn.js
Last active November 28, 2017 15:28
素数のやつ
<html>
<body>
<script>
var n,i,flg=0;
for(n=2;n<=100;n++){
for(i=2;i<=n;i++){
if(n%i==0)
flg++;
<html>
<script>
function print(ms){
document.write(ms,"<br>");
}
@idoushiki
idoushiki / pi.py
Last active December 3, 2017 09:54
ガウス=ルジャンドルのアルゴリズム
import math
aa=0
bb=0
tt=0
a=[0]*20
a[0]=1
b=[0]*20
b[0]=1/(math.sqrt(2))
t=[0]*20