Long Division

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Solve a division problem to the nearest whole number. Show your work for full credit.

- MWI

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

1000/9

Sample output:

     111
  ______
9 | 1000
    10
  -  9
    __
     10
   -  9
     __
      10
    -  9
      __
       10
     -  9
       __
        1

Sample input:_

200000000/9

Sample output:

     22222222
  ___________
9 | 200000000
    20
  - 18
    __
     20
   - 18
     __
      20
    - 18
      __
       20
     - 18
       __
        20
      - 18
        __
         20
       - 18
         __
          20
        - 18
          __
           20
         - 18
           __
            20
          - 18
            __
             2

Sample input:_

4000000/9

Sample output:

     444444
  _________
9 | 4000000
    40
  - 36
    __
     40
   - 36
     __
      40
    - 36
      __
       40
     - 36
       __
        40
      - 36
        __
         40
       - 36
         __
          40
        - 36
          __
           4

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o1300.04982023/02/11 15:18:270B / 36B / 85B
2Sisyphus1380.04962023/02/10 10:28:590B / 48B / 85B
3MeWhenI2400.04922023/02/09 00:54:040B / 96B / 112B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o1270.17742023/02/11 15:17:240B / 37B / 81B

C _

RankUserSizeTimeDateStatistics
1rotary-o1770.04262023/02/19 22:45:462B / 78B / 92B

Java _

RankUserSizeTimeDateStatistics
1rotary-o2450.19972023/02/20 00:04:090B / 114B / 122B

C# _

RankUserSizeTimeDateStatistics
1rotary-o2530.14672023/02/20 00:03:570B / 111B / 132B

sed _

RankUserSizeTimeDateStatistics
1tails1650.04322023/02/10 11:23:310B / 55B / 69B

gs2 _

RankUserSizeTimeDateStatistics
1whio560.20232023/02/24 22:53:1224B / 16B / 16B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o1678.10912023/02/12 00:25:560B / 58B / 91B

Language Ranking_

RankLangUserSizeScore
1gs2whio5610000
2Ruby2rotary-o1274409
3Rubyrotary-o1304307
4sedtails1653393
5Scalarotary-o1673353
6Crotary-o1773163
7Javarotary-o2452285
8C#rotary-o2532213

return to the top page