Search found 3 matches

by elgeish
Sun Jul 17, 2005 9:44 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 58162

Thnx

Thnx a lot, chunyi81, i got ACC now :)
by elgeish
Wed Jul 13, 2005 10:42 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 58162

195 - OLE

why OLE?

Code: Select all

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

bool cmp ( char a, char b ) { return (a|32) == (b|32) ? a >= 'A' && a <= 'Z' : (a|32) < (b|32); }

void main() {
// .... ACC
}
by elgeish
Sun Jul 10, 2005 6:31 pm
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 22598

i've tried ur input and i got ur ACC output but it gives WA???

#include <stdio.h>

void main() {
int H, M;
float A;

while( scanf( " %i : %i", &H, &M ) && ( H || M ) ) {
A = H * 30 + M / 2.0f - M * 6;
A = A < 0 ? -A : A;
printf( "%.3f\n", A > 180 ? 360.0 - A : A );
}
}

Go to advanced search