1 / 8
Nov 2004

Hello Everyone . This League is great , but I have a little problem . I cannot download the problemset #2. The pdfs I am downloading are 0kb. When I want to save one problem with Save As from Internet Explorer it gives me an error saying "The Web Page couldnt be saved to the selected location". Sorry for bothering you about this but I really don`t know what to do . Thanks.

  • created

    Nov '04
  • last reply

    Dec '14
  • 7

    replies

  • 1.8k

    views

  • 8

    users

  • 4

    links

I can suggest you to mark out the description of the problem and use cut and paste to save it anywhere.

I use to download pdf-description of the problems, but here I can only print it from the site.

ps. I think it doesn't solve your problem

Contest sites are still slightly incomplete. PS/PDF support was temporarily removed for reasons of access security; it should now be possible to download individual problem-texts as PS/PDF. The 'booklet' option still needs to be customised for contests, and is somewhere on our todo lists smile.

Other things contests lack at present include customised user's pages and contest-specific counts of the number of solutions (in the problem list). Also, you will run into trouble if you open a new window while viewing a contest, and within the same session try looking at more than one contest at a time.

All these features will probably only be fixed in the next major update of SPOJ, sometime in December.

3 years later

#include <iostream.h>                                                                                                                                        
#define ROZM_TAB 101                                                                                                                                         
int main()                                                                                                                                                   
{                                                                                                                                                            
  int t,n;                                                                                                                                                   
  int T[ROZM_TAB];                                                                                                                                           
  cin >> t;                                                                                                                                                  
  while(t)                                                                                                                                                   
    {                                                                                                                                                        
      cin >> n;                                                                                                                                              
      for (int i = 0 ; i < n ; i++)                                                                                                                          
        cin >> T[i];                                                                                                                                         
      for (int i = 1 ; i < n ; i+=2)                                                                                                                         
        cout << T[i] << " ";                                                                                                                                 
      for (int i = 0 ; i < n ; i+=2)                                                                                                                         
        cout << T[i] << " ";                                                                                                                                 
      cout<<"\n";                                                                                                                                            
      t--;                                                                                                                                                   
    }                                                                                                                                                        
}

smile

1 year later

te przykładowe nawet się nie kompilują ??
może jakaś podpowiedź ?

To dlatego, że nie ma już czegoś takiego, jak iostream.h (przynajmniej o ile mi wiadomo).
Za to na SPOJu dodanie ".h" do iostream powoduje, że nie trzeba już pisać "using namespace std;", co przydaje się w zadaniach na skracanie, takich jak:
pl.spoj.pl/problems/SUMAN/
spoj.pl/problems/SIZECON/
spoj.pl/problems/KAMIL/
spoj.pl/SHORTEN - kontest, w którym wyłącznie skraca się kody

Tak więc, jak wywalisz to ".h" i dodasz "using ..." to się skompiluje. Ale spróbuj to sam napisać, a nie wkleić gotowca, to będziesz miał większą satysfakcję. wink

4 years later

Masz podany prawidłowy output dla zadania:
2 5 1 3
8 9 7
A Twój to:
3 2 5 7 8
No więc nie wmówisz mi, że działa dobrze stuck_out_tongue

Niech będzie, że znów zabawie się w "odczytywacza" ze zrozumieniem.
"Najpierw t - liczba testów. Następnie dla każdego testu liczba n i n liczb, n <= 100."
Nasz przykładowy input:
2
4 1 2 3 5
3 9 8 7
A teraz go rozbijemy:
Najpierw t - liczba testów.
2
Następnie dla każdego testu liczba n
4
i n liczb
1 2 3 5
Następnie dla każdego testu liczba n
3
i n liczb
9 8 7

Nic nie ma w treści o opuszczaniu jakiegokolwiek elementu albo dopisywaniu własnego stuck_out_tongue