Search found 4 matches

by gg004
Sat Feb 22, 2014 8:28 pm
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 38754

Re: 10315 - Poker Hands

In case

Code: Select all

7C 7C 7D 2H 5S 2D 6D 7S 7S 7D
It's sure that White wins.

Why Tie. is accpected?
by gg004
Thu Feb 20, 2014 11:00 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70462

Re: 10137 - The Trip, get WA

Thank you. This is the point.
by gg004
Wed Feb 19, 2014 3:51 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70462

Re: 10137 - The Trip, get WA

I used int
by gg004
Mon Feb 17, 2014 9:34 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70462

10137 - The Trip, get WA

Here is my code.


#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

void format(char s[]) {
int i = 0;
while(isdigit(s[i])) {
i++;
}

if (s[i] == '.') {
while (s[i]) {
s[i] = s[i + 1];
i++;
}
}
else {
s[i++] = '0';
s[i++] = '0';
s[i] = '\0';
}
}

int main(void) {
int i, n ...

Go to advanced search