Skip to content

Commit 5c21796

Browse files
authoredJun 26, 2024··
Update cf-4A.mdx
1 parent c3c6913 commit 5c21796

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed
 

‎solutions/general/cf-4A.mdx

+8-9
Original file line numberDiff line numberDiff line change
@@ -34,39 +34,38 @@ int main() {
3434
```
3535

3636
</CPPSection>
37-
3837
<JavaSection>
3938

4039
```java
4140
import java.io.*;
4241
import java.util.*;
42+
4343
public class Watermelon {
4444
public static void main(String[] args) {
4545
Kattio io = new Kattio();
46-
int s = io.nextInt();
47-
if (s % 2 == 0 && s > 2) {
46+
int w = io.nextInt();
47+
if (w % 2 == 0 && w > 2) {
4848
io.println("YES");
4949
} else {
5050
io.println("NO");
5151
}
5252
io.close();
5353
}
54+
5455
// CodeSnip{Kattio}
5556
}
5657
```
5758

5859
</JavaSection>
59-
6060
<PySection>
6161

6262
```py
63-
num = int(input())
64-
if num % 2 != 0 or num <= 2:
65-
print("NO")
66-
else:
63+
w = int(input())
64+
if w % 2 == 0 and w > 2:
6765
print("YES")
66+
else:
67+
print("NO")
6868
```
6969

7070
</PySection>
71-
7271
</LanguageSection>

0 commit comments

Comments
 (0)
Please sign in to comment.