>>25
この問題は別に全角だろうが半角だろうが関係ない、気にするな

#include <stdio.h>
#include <string.h>

struct rec {
    char code[32];
    int month;
    double ratio;
};

main()
{
    struct rec cur, prev;

    memset(&prev, 0, sizeof prev);
    while (scanf("%s %d %lf", cur.code, &cur.month, &cur.ratio) == 3) {
        if (*prev.code && strcmp(cur.code, prev.code))
            printf("%s %d %f\n", prev.code, prev.month, prev.ratio);
        prev = cur;
    }
}