【UVa】[272]TeX中的引号

文章字数:92

问题描述

问题分析

思路很明了
算是测试一下UVaOJ怎么用
不过……
确实好难用啊……

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#include<stdio.h>
int main() {
	int c,x=1;
	while((c=getchar())!=EOF) {
		if(c=='"') {
			printf("%s",x?"``":"''");
			x=!x;
		} else
			printf("%c",c);
	}
	return 0;
}

题目地址:【UVa】[272]TeX中的引号

加载中...