#include<iostream> using namespace std; void ch(int a){ if(a==1)cout<<'A'; ch(a-1); cout<<char(a+'A'-1); ch(a-1); } int main(){ int n; cin>>n; ch(n); return 0; } 为什么我这样写不对啊??
Wu-求圆的面积 (C++代码)浏览:1887 |
三角形 (C++代码)递归(存在大量重复计算,容易出现时间超限)浏览:774 |
printf基础练习2 (C语言代码)浏览:746 |
蚂蚁感冒 (C语言代码)浏览:1319 |
大家好,我是验题君浏览:576 |
GC的苦恼 (C语言代码)浏览:618 |
时间转换 (C语言代码)浏览:625 |
检查金币 (C语言代码)浏览:1412 |
世界杯来了浏览:915 |
回形取数 (C语言代码)浏览:1197 |