Search found 26 matches

by subzero
Tue Aug 21, 2007 10:29 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 15927

Hi, how are you?? I'm having problems with this problem... with this code I got WA: #include <cstdio> #include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; bool funcion (pair <int, string> a, pair <int, string> b){ return a.first<b.first; } int main(){ #if...
by subzero
Wed Apr 25, 2007 1:08 am
Forum: C++
Topic: freopen--stdin??
Replies: 7
Views: 4624

well....

I have tested
> freopen("CON","r",stdin);

with g++ in Fedora 6 and... nothing happends.. :cry:

any other idea??
by subzero
Fri Apr 20, 2007 5:46 am
Forum: C++
Topic: freopen--stdin??
Replies: 7
Views: 4624

freopen--stdin??

Hi

how are you??

I'm using the freopen function to overload stdin with a stream, example:

freopen ("file.txt", "r", stdin)

and then... everything works ok...

but, how can I get the keyboard to take over the input process again?


thanx for caring..
by subzero
Sat Nov 11, 2006 10:30 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25309

Yes!!... that was the problem...

I didn't think printing an EOF will output an space... lol

Thanks!!
by subzero
Sat Nov 11, 2006 5:01 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25309

492 PE...lol

Hi everyone... I got PE in this problem: "Pig Latin", I have no idea where is the bug... do you have any idea? #include <stdio.h> int main() { char c; int b1,b2,b3; b1=b2=0; do { c=getchar(); b3=((c>='A' && c<='Z') || (c>='a' && c<='z')); if (b1==0 && b3==1) { if (c=='a' || c=='e' || c=='i' || c=='o...
by subzero
Fri Sep 15, 2006 8:14 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 15777

I think it is a little late to answer this topic... but.....if some one needs help:

first: n can be int, p can be double
second: you don't need floor

see ya.
by subzero
Tue Sep 12, 2006 7:09 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 27502

hi, how are you... for soyoja, there are NO negative numbers in the problem 105 :wink:
by subzero
Tue May 30, 2006 7:23 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 30257

Thanks for your help... I got AC with both codes :D

I didn't know that judge uses an old g++ version, I think it needs to be updated. :wink:
by subzero
Sat May 27, 2006 10:49 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 30257

495 Why Compile Error?

Hi how are you?? I just tried to solve this proble... but I get Compile error, I had compiled it on Windows and Linux (Fedora) and it works fine... does any one of you knows why the online judge is saying this: Here are the compiler error messages: /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../...
by subzero
Sun Aug 21, 2005 8:52 pm
Forum: Volume 4 (400-499)
Topic: 454 - Anagrams
Replies: 97
Views: 21155

Hi,How are you? I'm trying to solve this problem......but still getting WA... I got some inputs and the outputs are correct (i think), just see.... input: 3 carthorse horse horse cart i do not know u ok i now donut orchestra aPPLE PPLEa LEaPP erosh erosh horse horse ac bd a cbd q q [horse]' [e]rosh'...
by subzero
Mon Aug 15, 2005 5:27 am
Forum: Other words
Topic: Which problem is the easiest problem of this site?
Replies: 27
Views: 23738

Hi

how are you?

what about 10194 - Football (aka Soccer) or 444 - Encoder and Decoder??
are so easy.... :wink:

Go to advanced search