摘要:
#include<stdio.h> #define N 30 int a[N][N]; int main() { int n,count=1,x,y; scanf("%d",&n); a[0][n-1]=1; x=0; y=n-1; while(count<n*n) { while(x+1<n && 阅读全文
posted @ 2022-05-26 19:12
禹城我的家
阅读(1547)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <algorithm> using namespace std; string s,t; int main() { getline(cin,s); s=s.substr(0,s.size()-1); t=s; reverse(t.begin( 阅读全文
posted @ 2022-05-26 19:11
禹城我的家
阅读(1627)
评论(0)
推荐(0)
摘要:
#include<stdio.h> #define N 30 int a[N][N]; int main() { int i,j,n; scanf("%d",&n); for(i=0;i<n;i++) { a[i][0]=1; a[i][i]=1; } for(i=0;i<n;i++) for(j= 阅读全文
posted @ 2022-05-26 19:10
禹城我的家
阅读(563)
评论(0)
推荐(0)

浙公网安备 33010602011771号