Moderator: Board moderators
scruff wrote:You don't have to read all the input and then output all the answers at once. You can solve each input one at a time, like you did in your first example.
PS... Please shorten your signature it makes the page width and all the text messed up.
nightdog wrote:If you got an answer from the online judge saying you're not permitted to use that host to submit, it means you have the option to only accept submissions by e-mail.
you can either submit your code using the e-mail you specified when you subscribed or change that parameter, which can be done by going to http://acm.uva.es/cgi-bin/OnlineJudge?U ... itUserMenu
scruff wrote:fangs404: I don't know java but you need to make sure that your int's do not need to be long int's or something else maybe.
#!/bin/sh
UVA_USERNAME=*******
if [ -e $1 ]
then
echo 'UVA Problems Submitter(in Pascal)'
touch /tmp/UVA_MAIL_$$
echo 'Which problem? (number)'
read UVA_NUMBER
echo "{ @JUDGE_ID: ${UVA_USERNAME} ${UVA_NUMBER} Pascal}">/tmp/UVA_MAIL_$$
cat $1>>/tmp/UVA_MAIL_$$
cat /tmp/UVA_MAIL_$$
mail -r foo@bar.net judge@uva.es < /tmp/UVA_MAIL_$$
rm /tmp/UVA_MAIL_$$
fi
Users browsing this forum: Bing [Bot] and 0 guests