File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ class Solution : Solver {
14
14
15
15
var digits = Enumerable . Range ( 1 , 9 ) . ToArray ( ) ;
16
16
17
- var stmBlocks = input . Split ( "inp w\n " ) [ 1 ..] ; // The input has 14 code blocks, each dealing with one digit.
17
+ // The input has 14 code blocks, each dealing with one digit.
18
+ // The blocks define 7 pairs of `a`, `b` digits and a `shift` between them.
19
+ // The input is valid if for each pair the condition `a + shift = b` holds.
20
+ var stmBlocks = input . Split ( "inp w\n " ) [ 1 ..] ;
18
21
19
22
// Extracts the numeric argument of a statement:
20
23
var getArgFromLine = ( int iblock , Index iline ) =>
21
24
int . Parse ( stmBlocks [ iblock ] . Split ( '\n ' ) [ iline ] . Split ( ' ' ) [ ^ 1 ] ) ;
22
25
23
- // The blocks define 7 pairs of `a`, `b` digits and a `shift` between them.
24
- // The input is valid if for each pair the condition `a + shift = b` holds.
25
-
26
26
// A stack will contain the index of an `a` digit when we find it's corresponding `b`.
27
27
var stack = new Stack < int > ( ) ;
28
28
You can’t perform that action at this time.
0 commit comments