Clojure finally on SPOJ!

192 views
Skip to first unread message

sphere research

unread,
Jul 25, 2010, 3:51:27 AM7/25/10
to Clojure
Hi,

now, you can solve problems/submit problems in Clojure on SPOJ,

good luck,

regards,
SPOJ Team

ps.

We are very happy to announce that users' accounts have finally
appeared on Ideone :)
If you liked Ideone as it has been so far, you will like the new one
even more. The most important new features available for Ideone users
are:

* management panel where users can view and group their pastes,
* personalized access to Ideone API
* and public folders which allow to publish and share a group of
pastes at one go.

Cachou

unread,
Jul 25, 2010, 6:34:52 AM7/25/10
to Clojure
Even the "TEST" Problem will TLE!!!

My code is here:

(ns spoj-test)

(defn read-int
[]
(let [s (read-line)]
(Integer/parseInt s)))

(defn main
[] (let [n (read-int)]
(when (not (== 42 n))
(println n)
(recur))))


(main)

the sample input is OK.

Matthias Schneider

unread,
Jul 27, 2010, 5:39:21 AM7/27/10
to Clojure
And on nearly all problems Clojure isn't an accepted language (yet?).
Does the person who submitted the problem has to update this?

-matthias

Nikita Beloglazov

unread,
Jul 27, 2010, 10:28:34 AM7/27/10
to clo...@googlegroups.com
Yes, it would be great to see example of any program, that passed all tests on spoj written in clojure. Even if first task has got TLE...

Cachou

unread,
Jul 27, 2010, 8:40:38 PM7/27/10
to Clojure
Maybe SPOJ treat clojure as script language. In fact, though clojure
is quite fast, loading the clojure.jar library takes a bit of time.
And SPOJ count the class loading time into the running time. If the
Judge Machine is similar to ideone.com, maybe the clojure.jar loading
time is about 0.6~0.7s. Only the class loading time will TLE the
problem if there is more than 2 cases.

I hope It's not true...

On Jul 27, 5:39 pm, Matthias Schneider <matthias.schnei...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages