Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define fs ios_base::sync_with_stdio (0); cin.tie(0)
- #define por(i,a,b) for(ll i=a;i<b;i++)
- #define fp(ch) freopen(ch,"r",stdin)
- #define ll long long
- #define pb(x) push_back(x)
- #define S second
- #define f first
- #define N 100005
- #define OO 1000000000000000000
- #define mod 1000000007
- #define pi acos(-1)
- #define EPS 0.000000001
- using namespace std;
- int main(){
- fs;
- ll n,x=-1,moves=0;
- cin>>n;
- ll t[n];
- map<ll,ll> m;
- por(i,0,n){
- cin>>t[i];
- m[t[i]]++;
- if(m[t[i]]>2){
- cout<<"cslnb";
- return 0;
- }
- if(m[t[i]]==2){
- if(x!=-1 || t[i]==0){
- cout<<"cslnb";
- return 0;
- }else{
- moves++;
- t[i]--;
- x=t[i];
- }
- }
- }
- if(m[x]){
- cout<<"cslnb";
- return 0;
- }
- sort(t,t+n);
- //por(i,0,n) cout<<t[i] <<" ";cout<<endl;
- por(i,0,n){
- moves+=(t[i]-i);
- }
- if(moves%2) cout<<"sjfnb";
- else cout<<"cslnb";
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement