- 2023-05-085.8
#include<stdio.h>inta[14];main(){inti,j=1,n;printf("魔术师手中的牌原始次序是:\n");for(i=1;i<=13;i++){n=1;do{if(j>13)j=1;if(a[j])j++;else{if(n==i)a[j]=i;j++;n++;}}while(n<=i);}for(i=1;i<=13;i++)printf("%d",a[i]);printf("\
- 2022-11-27q4
#include<stdio.h>int main(){ int n,m,i,j; scanf("%d%d",&n,&m); for(i=0;i<n;i++){for(j=0;j<m;j++){if('A'+j-i<'A')printf("%c",'A'-j+i);elseprintf("%c",'A'+j-i);
- 2022-11-2529.1307
#include<stdio.h>#include<math.h>intmain(){intn,i,j,a[10];for(i=0;i<10;i++)scanf("%d",&a[i]);for(i=0;i<10;i++){for(j=i+1;j<10;j++){if(a[i]>a[j]){n=a[