回答編集履歴

1

修正

2020/08/04 23:56

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -12,6 +12,32 @@
12
12
 
13
13
  [参考](https://qiita.com/tTAGUCHI/items/1dee92cd058f975ffce3)
14
14
 
15
+ ***
16
+
17
+ あと、
18
+
19
+ ```Python
20
+
21
+ n = int(input().strip())
22
+
23
+ if n % 2 ==0:
24
+
25
+ if 6 <= n <= 20:
26
+
27
+ print("Weird");
28
+
29
+ else:
30
+
31
+ print("Not Weird");
32
+
33
+ else:
34
+
35
+ print("Weird")
36
+
37
+ ```こんな感じに短くできる気がします。
38
+
39
+ ***
40
+
15
41
  ちなみに`&`は、
16
42
 
17
43
  ```