gyhtxdy 1-5

hxr题解

//T1
#include 
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n;j++)
			cout<<'*';
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=i;j++) cout<<"*";
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=i-1;j++) cout<<"□";
		for (int j=i;j<=n+i-1;j++)
			cout<<"×";
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n-i;j++) cout<<"□";
		for (int j=n-i+1;j<=n+i-1;j++) cout<<"×";
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n-i;j++) cout<<"□";
		for (int j=n-i+1;j<=n+i+1;j++) cout<<"×";
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=n;i>=1;i--){
		for (int j=1;j<=n-i;j++) cout<<"□";
		for (int j=n-i+1;j<=n+i-1;j++) cout<<"×";
		cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n+1;i++){
		for (int j=1;j<=n-i+1;j++) cout<<" ";
		for (int j=n-i+1;j<=n+i-1;j++) cout<<"*";
		cout<=1;i--){
		for (int j=1;j<=n-i+1;j++) cout<<" ";
		for (int j=n-i+1;j<=n+i-1;j++) cout<<"*";
		cout<
using namespace std;

int main(){
	int n,s=1;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n-i;j++) cout<<" ";
		for (int j=n-i+1;j<=n+i-1;j++) cout<
using namespace std;

int main(){
	int n;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n-i;j++) cout<<" ";
		for (int j=n-i+1;j<=n+i-1;j++) cout<
using namespace std;

int main(){
	int n;
	char s='A';
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=1;j<=n-i;j++) cout<<" ";
		for (int j=n-i+1;j<=n+i-1;j++) cout<

gyhtxdy

你可能感兴趣的:(gyhtxdy 1-5)