跳到正文

个人记录

openjudge 08:字符三角形(错题)

用户 221063约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include <cstdio>
using namespace std;
int main(){
	char c;
	scanf("%c",&c);
	printf("  %c  \n",c);
	printf(" %c%c%c \n",c,c,c);
	printf("%c%c%c%c%c\n",c,c,c,c,c);
	return 0;

}

未一次AC原因:输入字符形式不对

原文