repo.or.cz
/
aoc_eblake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
day 13 part 1 failed attempt
[aoc_eblake.git]
/
2022
/
day10.c
blob
5dcef7fd5723d91a4132d29979edecff1cbc6131
1
#include<stdio.h>
2
#include<stdlib.h>
3
int
a
,
c
,
d
,
e
=
1
;
char
*
q
,
b
[
253
],*
p
=
b
;
int
main
(
void
){
for
(
q
=
6
+
b
;~(
4
*++
p
=
getchar
());*
b
=*
q
=
10
)
e
+=*
p
<
40
?
q
+=!(
c
=
d
%
40
),
a
+=++
d
*
e
*!(
c
-
5
19
),
c
-=
e
,*
q
++=
"#."
[
c
*
c
>
1
],
atoi
(
p
=
b
):
0
;
printf
(
"%d%s"
,
a
,
b
+
6
);}