• 検索結果がありません。

9髴搾スッ騾カ、髯ヲィ驕会スコ

N/A
N/A
Protected

Academic year: 2021

シェア "9髴搾スッ騾カ、髯ヲィ驕会スコ"

Copied!
2
0
0

読み込み中.... (全文を見る)

全文

(1)

1

9

路盤の表示

囲碁をイメージする為に、9路盤を表示します。

1.1

9

路盤の表示プログラム

/* ci1.c 9路盤の表示 */ #include <stdio.h> #define B_SIZE 9

#define WIDTH 11 // B_SIZE + 2

int get_z(int x, int y);

int board[121] = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 }; int main() { int x,y; char *str[3] = {"・", "●", "○"}; printf(" \n "); for(x = 0; x < B_SIZE; x++){ 1

(2)

printf("%d ", x+1); }

printf("\n");

for(y = 0; y < B_SIZE; y++){ printf("%d ", y+1); for(x = 0; x < B_SIZE; x++){ printf("%s", str[board[get_z(x,y)]]); } printf("\n"); } return 0; }

int get_z(int x, int y) {

return (y + 1) * WIDTH + (x + 1); //0<= x <= 8, 0<= y <= 8 }

参照

関連したドキュメント

(The Elliott-Halberstam conjecture does allow one to take B = 2 in (1.39), and therefore leads to small improve- ments in Huxley’s results, which for r ≥ 2 are weaker than the result

“Breuil-M´ezard conjecture and modularity lifting for potentially semistable deformations after

S., Oxford Advanced Learner's Dictionary of Current English, Oxford University Press, Oxford

We will be discussing relations among different concepts of smoothness which include ω r ϕ (f, t), various K-functionals, realization functionals, rate of best approximation,

At the end of the section, we will be in the position to present the main result of this work: a representation of the inverse of T under certain conditions on the H¨older

24日 札幌市立大学講義 上田会長 26日 打合せ会議 上田会長ほか 28日 総会・学会会場打合せ 事務局 5月9日

また、同法第 13 条第 2 項の規定に基づく、本計画は、 「北区一般廃棄物処理基本計画 2020」や「北区食育推進計画」、

○○でございます。私どもはもともと工場協会という形で活動していたのですけれども、要