Search found 1 match

by fadying
Mon Apr 02, 2012 1:15 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 77766

Re: 10055 - Hashmat the Brave Warrior

Why does this simply problem take 2.2s in java and take only 0.06s in ANSI C ? I don't understand..

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner in = new Scanner(System.in);
long a, b;

while (in.hasNextLong()) {
a = in.nextLong();
b = in ...

Go to advanced search