Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
solver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
adc2019
solver
Commits
558657d6
Commit
558657d6
authored
May 27, 2019
by
tawada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change variables to extern
parent
2fc26a91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
io.c
io.c
+4
-0
io.h
io.h
+5
-5
No files found.
io.c
View file @
558657d6
...
...
@@ -10,6 +10,10 @@ short int w=0, h=0; // 使用する盤面サイズ
short
int
blocks
=
0
;
// ブロックの数
short
int
block_data
[
MAXBLOCK
+
1
][
5
][
3
];
// ブロックの情報
short
int
board_data
[
MAXW
][
MAXH
];
// 盤面情報
void
reset_parameters
(
void
){
int
i
,
j
,
k
;
for
(
i
=
0
;
i
<
MAXBLOCK
;
i
++
)
...
...
io.h
View file @
558657d6
...
...
@@ -8,13 +8,13 @@
#define MAXW 72
#define MAXH 72
short
int
W
,
H
;
// (問題で設定された) 盤面サイズ上限
extern
short
int
W
,
H
;
// (問題で設定された) 盤面サイズ上限
short
int
w
,
h
;
// 使用する盤面サイズ
extern
short
int
w
,
h
;
// 使用する盤面サイズ
short
int
blocks
;
// ブロックの数
extern
short
int
blocks
;
// ブロックの数
short
int
block_data
[
MAXBLOCK
+
1
][
5
][
3
];
// ブロックの情報
extern
short
int
block_data
[
MAXBLOCK
+
1
][
5
][
3
];
// ブロックの情報
// block_data[0][X][X]は使用しない
// block_data[block#][0][0] ブロックの左上のマスのx座標 (0スタート,未配置なら-1)
// block_data[block#][0][1] ブロックの左上のマスのy座標 (0スタート,未配置なら-1)
...
...
@@ -24,7 +24,7 @@ short int block_data[MAXBLOCK+1][5][3]; // ブロックの情報
// block_data[block#][1~4][1] マスの,左上マスからの相対位置 y方向
// block_data[block#][1~4][2] マスの端点情報 (数字がなければ0,モノミノで存在しない場合は-1)
short
int
board_data
[
MAXW
][
MAXH
];
// 盤面情報
extern
short
int
board_data
[
MAXW
][
MAXH
];
// 盤面情報
// board_data[x][y] が (x,y) の盤面情報を表わす
// (0,0),(1,0),(2,0), ... ,(71,0)
// ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment