-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path수업.cpp
55 lines (55 loc) · 1.05 KB
/
수업.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//#define _CRT_SECURE_NO_WARNINGS
//#include<stdio.h>
//int main(void) {
// int arr[101][101];
// int n, m;
// scanf("%d %d", &n, &m);
// int x = 1;
// int i = 1;
// int j = m;
//
// for (int j = 1; j <= n + m; j++)
// {
// int temp_j = j;
// if (temp_j > m) {
//
// temp_j = m;
// i++;
// }
//
// int temp_i = i;
// if (temp_i + temp_j > n + m)
// {
// break;
// }
// while (temp_j > 0)
// {
// if (j + 1 == temp_i + temp_j)
// {
// arr[temp_i][temp_j] = x++;
// }
//
//
// temp_i++;
// temp_j--;
//
// if (temp_i > n)
// {
// break;
// }
// }
// }
//
// for (int i = 1; i <= n; i++)
// {
// for (int j = 1; j <= m; j++)
// {
// printf("\t%d ", arr[i][j]);
// }
// printf("\n");
// }
//
// return 0;
//
//
//}//ºø±Ý 2¹ø