http://acm.sgu.ru/problem.php?contest=0&problem=404
就是拿一朵花不断地摘然后不停地数“Love", "Doesnt"...
取模就可以了
#include <stdio.h>
int main(void) {
    int n, m;
    char s[101][101];
    scanf ("%d%d", &n, &m);
    int i;
    for (i = 1; i <= m; ++i) {
        scanf ("%s", s[i]);
    }
    int love = (n%m == 0) ? m : n%m;
    printf("%s\n", s[love]);
    return 0;
}