Commit ceccf41 Adrian Reimann
committed
1 parent 135fbcb commit ceccf41 Copy full SHA for ceccf41
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
const OP_MODE_BIT_COUNT = 0 ;
12
12
const OP_MODE_PACKET_COUNT = 1 ;
13
13
14
- //read input (it is only one line in this puzzle
14
+ //read input (it is only one line in this puzzle)
15
15
$ hex_str = "" ;
16
16
$ input = fopen ("input.txt " , "r " );
17
17
while (($ input_line = fgets ($ input )) !== false ) {
18
18
$ hex_str = trim ($ input_line );
19
- break ;
19
+ break ; //break right after the first line
20
20
}
21
21
fclose ($ input );
22
22
Original file line number Diff line number Diff line change 18
18
const OP_MODE_BIT_COUNT = 0 ;
19
19
const OP_MODE_PACKET_COUNT = 1 ;
20
20
21
- //read input (it is only one line in this puzzle
21
+ //read input (it is only one line in this puzzle)
22
22
$ hex_str = "" ;
23
23
$ input = fopen ("input.txt " , "r " );
24
24
while (($ input_line = fgets ($ input )) !== false ) {
25
25
$ hex_str = trim ($ input_line );
26
- break ;
26
+ break ; //break right after the first line
27
27
}
28
28
fclose ($ input );
29
29
You can’t perform that action at this time.
0 commit comments