Submission #1898660


Source Code Expand

object Main {
  def main(args: Array[String]): Unit = {
    val in = readLine.split(" ").map(_.toInt)
    val X = in(0)
    val Y = in(1)

    var max = (Y / X).toDouble
    var count = 1

    while(max > 1.0){
      max = max / 2.0
      count += 1
    }

    print(count)
  }
}

Submission Info

Submission Time
Task C - Multiple Gift
User Harsp114
Language Scala (2.11.7)
Score 0
Code Size 295 Byte
Status RE
Exec Time 327 ms
Memory 25540 KB

Compile Error

warning: there was one deprecation warning; re-run with -deprecation for details
one warning found

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 1
WA × 1
RE × 1
AC × 4
WA × 3
RE × 8
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt RE 327 ms 25540 KB
02.txt WA 317 ms 25276 KB
03.txt AC 315 ms 25172 KB
04.txt RE 318 ms 25236 KB
05.txt RE 316 ms 25284 KB
06.txt RE 316 ms 25128 KB
07.txt WA 316 ms 25292 KB
08.txt RE 315 ms 25288 KB
09.txt AC 315 ms 25256 KB
10.txt RE 315 ms 25148 KB
11.txt AC 313 ms 25024 KB
12.txt RE 317 ms 23380 KB
s1.txt WA 312 ms 24908 KB
s2.txt AC 316 ms 25252 KB
s3.txt RE 317 ms 25280 KB