//Relive your past life. //Face your demons. //The past is never dead,it is not even past. //The memories are not only the key to the past but...also to the future. //coded in Rusty Lake #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define ll long long #define pb push_back #define mp make_pair #define orz 1000000007 using namespace std; int T,n,m,k,f[1030],a[1005],cnt,ok[1030]; int main(){ scanf("%d",&T); for(int _=1;_<=T;++_){ printf("Case #%d: ",_); scanf("%d%d%d",&n,&m,&k); for(int i=1;i<=n;++i){ a[i]=0; for(int j=0;j=k){ ok[i]=1; ++ans; } } printf("%d\n",ans); } //system("pause"); return 0; }