解题思路:
注意事项:
参考代码:
n,m = map(int,input().split()) ls = [] for i in range(n): s = input().split() ls.append([i for i in s]) def turn(ls): n = len(ls) m = len(ls[0]) for i in range(n): ls[i] = ls[i][1:] b = [[0 for i in range(n)] for i in range(m-1)] for i in range(m-1): for j in range(n): b[i][j] = ls[n-1-j][i] return b while(ls): a = len(ls) for i in range(a): print(ls[i][0],end=' ') ls = turn(ls)
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)浏览:1026 |
C语言考试练习题_保留字母 (C语言代码)浏览:638 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:767 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:1090 |
川哥的吩咐 (C++代码)浏览:1076 |
字符串比较 (C语言代码)答案错误????浏览:641 |
C语言训练-求PI* (C语言代码)浏览:637 |
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:582 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:742 |
Quadratic Equation (C语言代码)浏览:1034 |