#include<bits/stdc++.h>
using namespace std;
#define int long long
#define elif else if
int32_t main()
{
for (int i = 1 ; i <= 100 ; i++)
{
for (int j = 1 ; j <= 100 ; j ++)
{
if (i == j || i == 1 || i == 100 ||j == 1 || j == 100)
{
cout << 1;
}
elif(1)
{
cout<<0;
}
}
cout << "\n" ;
}
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<bits/stdc++.h> using namespace std; #define int long long #define elif else if int32_t main() { for (int i = 1 ; i <= 100 ; i++) { for (int j = 1 ; j <= 100 ; j ++) { if (i == j || i == 1 || i == 100 ||j == 1 || j == 100) { cout << 1; } elif(1) { cout<<0; } } cout << "\n" ; } } |
English