西电网络赛 - D

#include <iostream>
using namespace std;
/****************************************************************************************************************
                水题,水过去
****************************************************************************************************************/
int main()
{
    long long a,b,c;
    while(cin>>a>>b>>c)
    {
        long mod=c%(a+b);
        if(mod == 0)
            cout<<"light"<<endl;
        else if(a >= mod)
            cout<<"wanshen"<<endl;
        else
            cout<<"light"<<endl;
    }
    return 0;
}

posted on 2016-04-17 21:52  Jstyle  阅读(109)  评论(0编辑  收藏  举报

导航