Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
还有比这个更水的吗?不需要開數組好嘛不過估計數據量很大,竟然是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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator