Skip to content

Commit 73b3448

Browse files
authoredDec 28, 2023
Update usaco-1228.mdx
1 parent bff437e commit 73b3448

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎solutions/bronze/usaco-1228.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main() {
4545
// that must be lying given that Bessie is at the position of cow i.
4646
vector<int> lying_left(n);
4747
for (int i = 1; i < n; i++) {
48-
// Add up all the cows that are lying to the left of our pos.
48+
// Add up all the cows that are lying to the left of our position.
4949
lying_left[i] += lying_left[i - 1];
5050

5151
if (cows[i - 1].second == 'L' && cows[i].first >= cows[i - 1].first) {
@@ -124,7 +124,7 @@ public class CountingLiars {
124124
// that must be lying given that Bessie is at the position of cow i.
125125
int[] lying_left = new int[n];
126126
for (int i = 1; i < n; i++) {
127-
// Add up all the cows that are lying to the left of our pos.
127+
// Add up all the cows that are lying to the left of our position.
128128
lying_left[i] += lying_left[i - 1];
129129

130130
if (cows[i - 1].statement == 'L' &&
@@ -185,7 +185,7 @@ cows.sort(key=lambda c: (c.pos, c.statement))
185185
# that must be lying given that Bessie is at the position of cow i.
186186
lying_left = [0 for _ in range(n)]
187187
for i in range(1, n):
188-
# Add up all the cows that are lying to the left of our pos.
188+
# Add up all the cows that are lying to the left of our position.
189189
lying_left[i] += lying_left[i - 1]
190190

191191
if cows[i - 1].statement == "L" and cows[i].pos >= cows[i - 1].pos:

0 commit comments

Comments
 (0)
Please sign in to comment.