Search found 98 matches

by hamedv
Thu Aug 16, 2007 5:32 pm
Forum: Volume 102 (10200-10299)
Topic: 10295 - Hay Points
Replies: 20
Views: 9183

I Got Compile Error Many Times

ACed
by hamedv
Wed Aug 15, 2007 5:47 pm
Forum: Volume 9 (900-999)
Topic: 917 - Euro 2004
Replies: 3
Views: 3719

I think it's an easy problem
can any one tell me why 8 people got AC on this problem
by hamedv
Wed Aug 15, 2007 9:12 am
Forum: Volume 9 (900-999)
Topic: 962 - Taxicab Numbers
Replies: 16
Views: 10309

How many Taxicab Numbers is in range [1, 1001000000]?
by hamedv
Wed Aug 15, 2007 9:09 am
Forum: Volume 9 (900-999)
Topic: 914 - Jumping Champion
Replies: 37
Views: 17510

I'm getting WA I tried all of IO above #include <stdio.h> #include <string.h> int main() { const int MAX = 1000000; bool prime[MAX+1]; memset(prime, 1, sizeof prime); prime[0] = prime[1] = 0; for (int i = 2; i <= MAX; i++) if (prime[i]) { int k = (MAX+1) / i; for (int j = 2; j <= k; j++) prime[j*i] ...
by hamedv
Thu Aug 09, 2007 4:46 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 34637

no one to help me
by hamedv
Sat Aug 04, 2007 1:36 pm
Forum: Volume 112 (11200-11299)
Topic: 11254 - Consecutive Integers
Replies: 24
Views: 11726

can you give me some hint :)
by hamedv
Sat Aug 04, 2007 1:31 pm
Forum: Volume 112 (11200-11299)
Topic: 11256 - Repetitive Multiple
Replies: 15
Views: 6903

11256 - Repetitive Multiple

what's wrong with my code i got TLE :( #include <stdio.h> #include <string.h> int len, m, i, j, cl; bool b; bool cut(char s[]) { int len = strlen(s); if (len % m != 0) return 0; cl = len / m; for (i = 0; i < m-1; i++) for (j = 0; j < cl; j++) if (s[i * cl + j] != s[(i+1) * cl + j]) return 0; return ...
by hamedv
Thu Aug 02, 2007 7:39 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 34637

what's wrong with my code??? #include <cstdio> #include <iostream> #include <algorithm> using namespace std; struct u { int tot, time, num, t[10]; bool b[10], s; } team[121]; bool comp(u a, u b) { return (a.tot > b.tot) || (a.tot == b.tot && a.time < b.time) || (a.tot == b.tot && a.time == b.time &&...
by hamedv
Mon Jul 30, 2007 11:15 am
Forum: Volume 9 (900-999)
Topic: 967 - Circular
Replies: 23
Views: 12795

thanx :wink:
by hamedv
Sun Jul 29, 2007 3:43 pm
Forum: Volume 9 (900-999)
Topic: 967 - Circular
Replies: 23
Views: 12795

no one to help me??? :-?
by hamedv
Sun Jul 29, 2007 11:09 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20906

wath's the out put for 99 99?
by hamedv
Sun Jul 29, 2007 7:55 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20906

here's my code #include <stdio.h> long long int m, x; int main() { while (scanf("%lld %lld", &m, &x), x||m) { if (x == 100 || x == 0 || m == 1) puts("Not found"); else { if ((m-1)*100/(100-x)) printf("%lld\n", (m-1)*100/(100-x)); else puts("Not found"); } } return 0; }
by hamedv
Sun Jul 29, 2007 7:52 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20906

i think for x = 0 the answer should be 'Not found'
and for x = 50 && m = 51 the answer should be '100'
and when m = 1 the answer should be 'Not found'
But my code got WA?
by hamedv
Sun Jul 29, 2007 7:21 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20906

11247 - Income Tax

What's wrong with my code???

Code: Select all

#include <stdio.h>

long long int m, x;

int main()
{
	while (scanf("%lld %lld", &m, &x), x||m)
		if (x == 100)
			puts("Not found");
		else
			printf("%lld\n", (m-1)*100/(100-x));
	return 0;
}
:cry:
by hamedv
Sat Jul 28, 2007 9:01 pm
Forum: Off topic (General chit-chat)
Topic: How old are you? Statistics.
Replies: 121
Views: 175834

age : 12
join : 2007
solved : 368+

Go to advanced search