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
#!/bin/bash | |
# 関数呼び出しするだけでゲロ遅くなるのかー | |
ct=0 | |
for((i=1;i<10000;i++)) do | |
# echo "($i)" | |
x=$i | |
rev=0 | |
y=$x |
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
#!/bin/bash | |
ret=0 | |
for((i=1;i<=100;i++)) do | |
c=1 | |
h=$((i>>1)) | |
for((j=1;j<=h;j++)) do | |
c=$((c*(i-j+1)/j)) | |
# echo "$i $j $c" | |
if [ $c -gt 1000000 ]; 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
AA | |
AA | |
AA *4 | |
AB | |
AA *4 | |
BB | |
AB |
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
package gdd2011; | |
import java.io.File; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.BitSet; | |
import java.util.Scanner; | |
/** | |
* 現在の解答状況と残りカウント数、残り問題等の表示 | |
* @author uwi |
NewerOlder