Tags » Slick

What's Happening Tonight? 10/26/18

DNA Lounge & Sid Presley present

Messer Chups

Friday, October 26

Halloween (is every day)

doors @ 8pm;
show @ 8:30pm.

rock.

all ages.

$15 advance; 73 more words

Bright Lights, Big City // by Kevin

In this playlist: Songs for leavin’ the TV and the radio behind and steppin’ out into your 80s Jay McInerney coke-fueled club fantasy. And in a yellow taxi turn to me and smile, we’ll be there in just a while, if you follow me!

Direct link to playlist

Playlist

SPOJ UCV2013H SLICK

#include<bits/stdc++.h>
#define fastio() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define pb push_back
#define MOD 1000000007
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define FOR(a,n) for(int i=a;i<n;++i)
#define arrin(n) for(int i=0; i < n; ++i) cin>>arr[i];
#define arrout(n) for(int i=0; i < n; ++i) cout<<arr[i]<<" ";cout<<nl;
#define nl "\n"
#define mp make_pair
typedef unsigned long long ull;
typedef int ll;
typedef long double ld;
using namespace std;
bool a;
bool d;
ll x;
void BFT(ll i,ll j,ll n,ll m)
{
   d[i][j]=1;
   //cout<<i<<" "<<j<<" "<<d[i][j]<<" "<<x<<endl;
   if(i>0 && a[j]==1 && d[j]==0)
   {
     x++;
     BFT(i-1,j,n,m);
   }
   if(i<n-1 && a[j]==1 && d[j]==0)
   {
     x++;
     BFT(i+1,j,n,m);
   }
   if(j>0 && a[i]==1 && d[i]==0)
   {
     x++;
     BFT(i,j-1,n,m);
   }
   if(j<m-1 && a[i]==1 && d[i]==0)
   {
     x++;
     BFT(i,j+1,n,m);
   }
}
int main()
{
  fastio();
  while(1)
  {
    ll n,m;
    cin>>n>>m;
    if(n==0 && m==0)
    break;
    for(ll i=0;i<n;i++)
    {
      for(ll j=0;j<m;j++)
      {
        cin>>a[i][j];
        d[i][j]=0;
      }
    }
    map<ll,ll> mp;
    ll c=0;
    for(ll i=0;i<n;i++)
    {
      for(ll j=0;j<m;j++)
      {
        if(a[i][j]==1 && d[i][j]==0)
        { 
          c++;
          x=1;
          BFT(i,j,n,m);
          //cout<<x<<endl;
          mp[x]++;
        }
      }
    }
    cout<<c<<endl;
    for(auto i:mp)
    {
      cout<<i.first<<" "<<i.second<<endl;
    }
  }
  cerr << "Time : " << (double)clock() / (double)CLOCKS_PER_SEC << "s\n";
  return 0;
} 8 more words
SPOJ

Restoring a Chisel/Slick

Apparently, my last restore was somewhat lame, so I’ll step up my game a little bit and show you how I restored this slick.

I bought this blade on the Worlds Longest Yard Sale a couple of weeks ago. 699 more words

Antique Tools

SQL made easy and secure with Slick

Slick stands for Scala Language-Integrated Connection Kit. It is Functional Relational Mapping (FRM) library for Scala that makes it easy to work with relational databases. 1,306 more words

Scala

FUCKBOY

We tend to take life so serious that we tend to forget that we can laugh and do stupid things. I like creating things that are different then what trends tend to say is in and out. 16 more words

Illustrations