Skip to content

Commit

Permalink
Znakusi
Browse files Browse the repository at this point in the history
  • Loading branch information
ogawa3427 committed Aug 4, 2023
1 parent 87d8a23 commit ad9948a
Show file tree
Hide file tree
Showing 6 changed files with 10,006 additions and 49 deletions.
22 changes: 4 additions & 18 deletions allc/dnalop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function add () {
gyaku farg
gyaku sarg

#たしざん&0埋め
exec 3<"farg"
exec 4<"sarg"

Expand All @@ -37,13 +36,10 @@ function add () {
IFS= read -r -n1 -u4 char2

if [ -z "$char1" ] && [ -z "$char2" ]; then
# 両方のファイルが終了した場合、ループを抜ける
break
fi

# もしchar1が空なら0を設定
[ -z "$char1" ] && char1="0"
# もしchar2が空なら0を設定
[ -z "$char2" ] && char2="0"

#ワイの答えはこれや!
Expand All @@ -52,7 +48,7 @@ function add () {

#記録&go next
if [ $sum -lt 10 ]; then
echo -n "$sum" | sed 's/0/z/g' >> rawout
echo -n "$sum" >> rawout
flag=0
elif [ $sum -eq 10 ]; then
echo -n "z" >> rawout
Expand All @@ -66,21 +62,11 @@ function add () {
exec 3<&-
exec 4<&-

echo $flag | sed 's/0//g' >> rawout
echo $flag >> rawout
gyaku rawout


cat rawout | sed 's/z/0/g'
echo

rm g*
rm sgf
rm sgs
rm so
rm stemp
rm ftemp
rm otemp
rm rawout
cat rawout
echo
}

function sub () {
Expand Down
1 change: 1 addition & 0 deletions allc/rawout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
198
Empty file added allc/stdNGlog.txt
Empty file.

0 comments on commit ad9948a

Please sign in to comment.