fork download
  1. #include <stdio.h>
  2. int main() {
  3. unsigned int node_id;
  4. char str[100];
  5. while(scanf("%u,%[^\n]",&node_id, str) == 2) {
  6. printf("%u\n",node_id);
  7. }
  8. return 0;
  9. }
Success #stdin #stdout 0s 2160KB
stdin
6067,UNKNOWN,2007-02-03 10:03:53.0,2007-01-02 02:54:13.0,12,6,0
29287,UNKNOWN,2007-02-03 21:11:07.0,2007-01-02 07:33:35.0,1,0,0
stdout
6067
29287