Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

SPOJ ARITH2 using ScriptEngineManager gives TLE. Please help.

$
0
0

Problem: http://www.spoj.com/problems/ARITH2/

Solution 1: http://ideone.com/jdUYbd

I know the problem can be done using switch case very easily,but I learnt about ScriptEngineManager recently and want to apply it for this particular program. I don't want to use switch case. Is there any way to optimize my code such that it gets accepted?

Thank You


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>