--正文

同样非常直白的题

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;

long x,y,a;

int main(){
    while (scanf("%ld%ld%ld",&x,&y,&a)!= EOF){
        long last = a % (x + y);
        if (last == 0){
            printf("light\n");
            continue;
        } 
        if (last > x) {
            printf("light\n");
        }
        else {
            printf("wanshen\n");
        }
    }
    return 0;
}

 

posted on 2016-11-21 10:51  Crutain  阅读(153)  评论(0)    收藏  举报