← 返回 snapchat 的题目列表Parsing CSV Single Line
类型:online_judge
Problem Statement
Given a single-line CSV string with fields separated by commas and possibly enclosed in double quotes, write a program to parse the string and output each element.
Input
A string representing a CSV with fields separated by commas, where fields may be enclosed in double quotes.
Output
Print each parsed field as an output.
Example
Input: A,B,","C,D","'
Output:
A
B
,C
D,
,
Constraints
The length of the string will be between 1 and 10^4.
Example
Input
A,B,","C,D","