【UVa】[272]Quotes in TeX

Problem Description

Loading...

Problem Analysis

The idea is straightforward
Just testing how UVaOJ works
But…
It really is hard to use…

cpp
 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;
}

Problem link: [UVa][272] Quotes in TeX

Loading...