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
b55935a5
Commit
b55935a5
authored
Jul 25, 2019
by
royus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aedb7f40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
README.md
README.md
+1
-1
main
main
+0
-0
solver.c
solver.c
+4
-3
No files found.
README.md
View file @
b55935a5
Usage:
Usage:
gcc
*
.c -O0 -lm -g -o main -Wall
;
gcc
*
.c -O0 -lm -g -o main -Wall
./main
./main
main
View file @
b55935a5
No preview for this file type
solver.c
View file @
b55935a5
/* solver.c */
/* solver.c */
/* Last Change: 2019/07/25 (Thu) 14:
03:43
. */
/* Last Change: 2019/07/25 (Thu) 14:
15:35
. */
#include<stdio.h>
#include<stdio.h>
#include<limits.h>
#include<limits.h>
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include"io.h"
#include"io.h"
/* #include<string.h> */
/* #include<string.h> */
/* #include<math.h> */
/* #include<math.h> */
#define DEBUG
1
#define DEBUG
0
#define ABS(a) ((a) < 0 ? - (a) : (a))
#define ABS(a) ((a) < 0 ? - (a) : (a))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
...
@@ -392,7 +392,8 @@ short int try_wires(short int blockid){
...
@@ -392,7 +392,8 @@ short int try_wires(short int blockid){
found
++
;
found
++
;
if
(
found
==
2
){
if
(
found
==
2
){
line
[
lines
]
=
block_data
[
blockid
][
i
][
2
];
line
[
lines
]
=
block_data
[
blockid
][
i
][
2
];
printf
(
"#%d Block %d requires line %d
\n
"
,
attempts
,
blockid
,
block_data
[
blockid
][
i
][
2
]);
if
(
DEBUG
)
printf
(
"#%d Block %d requires line %d
\n
"
,
attempts
,
blockid
,
block_data
[
blockid
][
i
][
2
]);
lines
++
;
lines
++
;
}
}
}
}
...
...
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