6 条题解

  • 1
    @ 2023-7-15 15:13:05
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    def upRange(start, stop, step):
    while start <= stop:
    yield start
    start += abs(step)
    def downRange(start, stop, step):
    while start >= stop:
    yield start
    start -= abs(step)
    
    for i in range(1, 6, 2):
    for j in (1 <= int(i)) and upRange(1, int(i), 1) or downRange(1, int(i), 1):
    print("*",end="");
    print(" ");
    return 0;
    }
    
    
    

    信息

    ID
    1276
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    77
    已通过
    36
    上传者