Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}==Overall:==
C45.cpp 1326
==Breakdown:==
Includes 10
Declarations 10
Helper: PutInCardSuits 100
Generic Processing 68
Royal Flush 71
Straight Flush 144
Four of a Kind 136
Full House 145
Flush 99
Straight 292
Three of a Kind 112
Input 94
Output 38#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}Damnit, why? It compiles without errors/warnings on both MSVC 2003.NET and Dev-C++ 4.9.9.2Darryl wrote:also since there where complaints last time no quotes for standard headers like #include "iostream"
==Overall:==
C45.cpp 1815
==Breakdown:==
Includes 14
Declarations 10
Helper: PutInCardSuits 100
Generic Processing 68
Royal Flush 71
Straight Flush 144
Four of a Kind 138
Full House 141
Flush 125
Straight 292
Three of a Kind 146
Two Pairs 197
One Pair 146
High Card 84
Input 94
Output 38#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}3d 3s 6d ah as
5d 6s 7h 8s 9d
6c 6s kh ks ac
9h 10h 10s ad ah
8h 8d 5h 5d 5c
Now to make a testing program to check that it works in every situation...
Users browsing this forum: MSN [Bot] and 0 guests