Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Post Dominos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esolang
Post Dominos
Commits
a3645d23
Commit
a3645d23
authored
Mar 09, 2019
by
rforder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusting output again
parent
acfb96e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
dominos.c
dominos.c
+9
-11
dominos.exe
dominos.exe
+0
-0
No files found.
dominos.c
View file @
a3645d23
...
...
@@ -170,8 +170,14 @@ int test_seq_length_k(domino *domino_list, int k, char *input)
for
(
x
=
0
;
x
<
k
;
x
++
)
{
domino
*
d
=
get_ith_domino
(
seq
[
x
],
domino_list
);
printf
(
"%s %s"
,
d
->
a
,
d
->
b
);
if
(
x
!=
k
-
1
)
printf
(
", "
);
if
(
input
)
{
printf
(
"%s %s"
,
d
->
a
,
d
->
b
);
if
(
x
<
k
-
1
)
printf
(
", "
);
}
else
printf
(
"%s"
,
d
->
a
);
}
printf
(
"
\n
"
);
if
(
input
)
...
...
@@ -230,7 +236,7 @@ int main(int argc, char **argv)
int
k
=
1
;
int
accepted
=
0
;
while
(
k
<
(
argc
==
3
?
strlen
(
argv
[
2
])
:
999
))
while
(
k
!=
(
argc
==
3
?
strlen
(
argv
[
2
])
:
-
1
))
{
if
(
test_seq_length_k
(
domino_list
,
k
,
(
argc
==
3
?
argv
[
2
]
:
NULL
)))
{
...
...
@@ -242,14 +248,6 @@ int main(int argc, char **argv)
}
k
++
;
}
if
(
accepted
)
{
printf
(
"accepted
\n
"
);
}
else
{
printf
(
"rejected
\n
"
);
}
domino
*
d
=
domino_list
;
domino
*
e
;
while
(
d
)
...
...
dominos.exe
View file @
a3645d23
No preview for this file type
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