Search found 2 matches

by shinningangel
Wed Apr 07, 2010 4:35 am
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 30363

Re: 11150 - Cola

I always got RTE on this problem..
even I make my program as short as only 7 lines without simulations..
or with simulations!!

its drive me crazy ><
why!?

is there any idea why got RTE?
by shinningangel
Sat Jan 02, 2010 11:29 pm
Forum: Volume 109 (10900-10999)
Topic: 10903 - Rock-Paper-Scissors Tournament
Replies: 27
Views: 16083

RTE!!

#include <stdio.h>
int main(){
int i,j,x,n,k;
int num_game;
while(scanf("%d",&n)==1){
if(n==0) break;
scanf("%d",&k);
double win[n],lose[n];
int player[n];
int suit_case[n];
num_game=(k*n*(n-1))/2;

for(x=0;x<n;x++){
win[x]=0;
lose[x]=0;
}

for(i=0;i<num_game;i++){
char A[9]={0 ...

Go to advanced search