东方博宜 1963. 贝贝的选择
#include<iostream>
using namespace std;
int main()
{
int n ;
cin >> n ;
int cnt ;
cnt = 0 ;
for(int i = 1 ; i <= n ; i++)
{
int j ;
j = i ;
int g ;
while(j>0)
{
g = j % 10 ;
if (g==6)
{
cnt += 1 ;
break ;
}
j = j / 10 ;
}
}
if (cnt % 2 == 0)
cout << "playground" ;
else
cout << "library" ;
return 0 ;
}