Water collected between towers: Difference between revisions
m
→Version 2: Removed more unnecessary code due to not supporting the verbose output.
m (→Version 2: Removed unnecessary linefeed separator.) |
m (→Version 2: Removed more unnecessary code due to not supporting the verbose output.) |
||
Line 350:
new int[] { 8, 7, 7, 6 }, new int[] { 6, 7, 10, 7, 6 }};
foreach (int[] t in a) {
for (j = t.Length - 1; j >= 0; j--) if (t[j] > 0) break;
if (j < 0) break;
else if (
} while (true);
int c = 0; string v = "hold"; foreach (char x in b) if (x == '.') c++;
|