📌  相关文章
📜  hackerrank python 解决方案 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:32.355000             🧑  作者: Mango

代码示例1
import math
import os
import random
import re
import sys


if __name__ == '__main__':
    n = int(input().strip())
    if n%2!=0:
        print('Weird')
    elif n%2==0 and n in range(2,5):
        print('Not Weird')
    elif n%2==0 and n in range(6,20):
        print('Weird')
    elif n%2==0 and n>20:
        print('Not Weird')