Search found 1 match

by KoltPenny
Tue Sep 29, 2015 9:41 pm
Forum: Volume 105 (10500-10599)
Topic: 10550 - Combination Lock
Replies: 24
Views: 27063

10550 - Combiantion Lock WA

What is wrong with my code? I always seem to get wrong answer and I tested some cases that give a wrong answer (the ones in the problem give me the right answer) but I have no clue as to why this is happening:

This is in C.

#include <stdio.h>

int main ()
{
int a,b,c,d,turns=0,angle=0;

while ...

Go to advanced search