Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
d707c9b0
Commit
d707c9b0
authored
Aug 26, 2018
by
royus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not finished
parent
e13b327d
Changes
35
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
72 additions
and
4 deletions
+72
-4
A01.txt
source/myans/A01.txt
+2
-0
A02.txt
source/myans/A02.txt
+2
-0
A03.txt
source/myans/A03.txt
+2
-0
A04.txt
source/myans/A04.txt
+2
-0
A05.txt
source/myans/A05.txt
+2
-0
A06.txt
source/myans/A06.txt
+2
-0
A07.txt
source/myans/A07.txt
+2
-0
A08.txt
source/myans/A08.txt
+2
-0
A09.txt
source/myans/A09.txt
+2
-0
A10.txt
source/myans/A10.txt
+2
-0
A11.txt
source/myans/A11.txt
+2
-0
A12.txt
source/myans/A12.txt
+2
-0
A13.txt
source/myans/A13.txt
+2
-0
A14.txt
source/myans/A14.txt
+2
-0
A15.txt
source/myans/A15.txt
+2
-0
A16.txt
source/myans/A16.txt
+2
-0
A17.txt
source/myans/A17.txt
+2
-0
A18.txt
source/myans/A18.txt
+2
-0
A19.txt
source/myans/A19.txt
+2
-0
A20.txt
source/myans/A20.txt
+2
-0
A21.txt
source/myans/A21.txt
+2
-0
A22.txt
source/myans/A22.txt
+2
-0
A23.txt
source/myans/A23.txt
+2
-0
A24.txt
source/myans/A24.txt
+2
-0
A25.txt
source/myans/A25.txt
+2
-0
A26.txt
source/myans/A26.txt
+2
-0
A27.txt
source/myans/A27.txt
+2
-0
A28.txt
source/myans/A28.txt
+2
-0
A29.txt
source/myans/A29.txt
+2
-0
A30.txt
source/myans/A30.txt
+2
-0
A31.txt
source/myans/A31.txt
+2
-0
A32.txt
source/myans/A32.txt
+2
-0
A33.txt
source/myans/A33.txt
+2
-0
A34.txt
source/myans/A34.txt
+2
-0
solver.c
source/solver.c
+4
-4
No files found.
source/myans/A01.txt
View file @
d707c9b0
...
...
@@ -3,3 +3,5 @@ Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A02.txt
View file @
d707c9b0
...
...
@@ -2,3 +2,5 @@ Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A03.txt
View file @
d707c9b0
...
...
@@ -2,3 +2,5 @@ Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A04.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A05.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A06.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A07.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A08.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A09.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A10.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A11.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A12.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A13.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A14.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A15.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A16.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A17.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A18.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A19.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A20.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A21.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A22.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A23.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A24.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A25.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A26.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A27.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A28.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A29.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A30.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A31.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A32.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A33.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/myans/A34.txt
View file @
d707c9b0
Cannot solve!
Cannot solve!
Cannot solve!
Cannot solve!
source/solver.c
View file @
d707c9b0
/* solver.c */
/* Last Change: 2018/08/26 (Sun) 1
4:46:21
. */
/* Last Change: 2018/08/26 (Sun) 1
5:19:07
. */
#define MAX_ATTEMPS 100000
0
#define MAX_ATTEMPS 100000
#include<stdio.h>
#include<stdlib.h>
...
...
@@ -111,10 +111,11 @@ int available(int startx,int starty, int startz){ //return 1 when (startx,starty
if
(
startz
<
width
&&
available
(
startx
,
starty
,
startz
+
1
))
return
1
;
}
avail
[
startz
][
starty
][
startx
]
=
0
;
return
0
;
}
int
connectable
(
int
linea
,
int
lineb
){
//return 1 if linea canbe connected when lineb is deleted
int
connectable
(
int
linea
,
int
lineb
){
//return 1 if linea can
be connected when lineb is deleted
int
startx
=-
1
,
starty
=-
1
,
startz
=-
1
,
notfound
=
1
;
int
i
,
j
,
k
;
for
(
i
=
0
;
i
<
depth
;
i
++
)
...
...
@@ -226,4 +227,3 @@ int main(void){
printf
(
"Cannot solve!
\n
"
);
return
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