Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

还有比这个更水的吗?不需要開數組好嘛

Posted by KatrineYang at 2016-10-25 04:31:22 on Problem 1488
不過估計數據量很大,竟然是16ms
#include <stdio.h>
#include <stdlib.h>

int main() {
	char c;
	bool first = 1;
	while(1){
		c = getchar();
		if(c == EOF) return 0;
		if(c != '"') printf("%c", c);
		else if(first){
			printf("``");
			first = 0;
		}
		else{
			printf("''");
			first = 1;
		}
	}
	return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator