"""第 03 课补全练习：筛选四句五七言。修改 solve，保持下方检查不变。"""
import math, io, argparse
import torch
from torch import nn
from torch.nn import functional as F
torch.set_num_threads(2)
torch.manual_seed(26)

def solve(lines):
    return len(lines)==4 and len(lines[0]) in (5,7) and all(len(x)==len(lines[0]) for x in lines)

assert solve(['春江花月夜']*4)
assert not solve(['春江']*4)
assert not solve(['春江花月夜']*3)
print("本课补全练习通过。")
