Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nszw-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
nszw-solver
Commits
7ed29987
Commit
7ed29987
authored
Aug 26, 2019
by
makoto.nishizawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show status
parent
d3b2bbf9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
README.md
README.md
+3
-0
solve
solve
+0
-0
solver.cpp
solver.cpp
+4
-0
No files found.
README.md
View file @
7ed29987
# 2019/08/26 追記
配線失敗時にボードを出力しないように変更しました
# 実行方法
```
cd nszw-solver
...
...
solve
View file @
7ed29987
No preview for this file type
solver.cpp
View file @
7ed29987
...
...
@@ -27,6 +27,7 @@ short int line_board[72][72];
short
int
mino_board
[
72
][
72
];
short
int
put_data
[
72
][
72
];
short
int
success
=
0
;
short
int
answerw
=
0
,
answerh
=
0
;
vector
<
int
>
mino_order
;
void
reset_board
(
void
){
...
...
@@ -50,6 +51,8 @@ void show_blocks(){
}
void
read_data
(
void
){
answerw
=
W
;
answerh
=
H
;
//show_blocks();
return
;
}
...
...
@@ -1017,6 +1020,7 @@ int solver(void){
solve
();
/* shape(); */
//translate();
if
(
w
>
answerw
||
h
>
answerh
)
success
=
0
;
return
success
;
}
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