Sort 5 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • sachiswg 9 years ago + 0 comments

    when input is 0 1 10 my answer is wrong, can anyone explaing this to me. i get 84266613096281242861568 last 7 digits are wrong with expected value. plz give me a tip I use double return type function

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • EvilCartman 10 years ago + 1 comment

      And again Perl was thrown out. Sure we all can code in any language, but at least you could limit available languages for such performance-sensitive contests.

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • shashank21j 10 years ago + 1 comment

        And then users say we still want to submit because theoretically it's still possible when you write your own bigInt class

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • EvilCartman 10 years ago + 0 comments

          Sure I wrote my own «bigInt class». Still not enough running time for Perl. You know, performance problems I have faced here is not about language itself, but about runtime environment - Python and even PHP sources are pre-compilied before execution, Perl is not. It would bee nice to see the same runtime conditions for all scripting languages.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

      • mohamed_fawzy 10 years ago + 0 comments

        i'm solvinging challenege however, not appear behind solve challenge button that's i'm solved it also my score didn't increase ?

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • Brace 10 years ago + 2 comments

          I can't seem to get it working. Test 6 keeps timing out. The largest valid values work fine in Strawberry Perl in 8 seconds, so I'm wondering if there might be a typo in the test file for perl.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • PRASHANTB1984 Challenge Author 10 years ago + 0 comments

            All languages have the same test file. Not sure about Perl raw data types, but you'll need something which can hold very long/large numbers.

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • Brace 10 years ago + 0 comments

              bigint holds them, but it times out after 16 seconds on test 6.

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

            • bdlim 10 years ago + 3 comments

              How did you guys deal with the extremely large values? It's bigger than an unsigned long long (I'm using C++).

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

              • Brace 10 years ago + 0 comments

                I tried bigint in perl and kept getting time outs on #6

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

                • PRASHANTB1984 Challenge Author 10 years ago + 0 comments

                  think of a big integer data structure in C++. Though, you might save yourself a lot of code writing this in some other language.

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                  • sidproquo 10 years ago + 0 comments

                    whoa! Just read this ryt now... I thot the challenge was about using digit vectors to solve this! I have been at it since hours now:| . The closest I could get in C++ was with usage of double and setprecision(0). The results were approximated and not exact, so my test cases still failed :/

                    Add Reply Preview cancel

                    Sorry, you do not have a permission to answer to this question.

                  1. Challenge Walkthrough
                    Let's walk through this sample challenge and explore the features of the code editor.1 of 6
                  2. Review the problem statement
                    Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
                  3. Choose a language
                    Select the language you wish to use to solve this challenge.3 of 6
                  4. Enter your code
                    Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
                  5. Test your code
                    You can compile your code and test it for errors and accuracy before submitting.5 of 6
                  6. Submit to see results
                    When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
                  1. Check your score