Search found 2 matches
- Fri Nov 13, 2015 8:26 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11631 - Dark roads
- Replies: 11
- Views: 5148
Re: 11631 - Dark roads
I get a Run Error, can't find out why. Please help. import java.util.*; class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); while(n != 0 && m != 0) { solve(n, m, sc); n = sc.nextInt(); m = sc.nextInt(); } ...
- Sun Aug 31, 2014 5:47 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10718 - Bit Mask
- Replies: 29
- Views: 9850
Re: 10718 - Bit Mask
import java.util.*; public class BitMask { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextInt()) { solve(sc.nextLong(), sc.nextLong(), sc.nextLong()); } sc.close(); } private static void solve(long N, long L, long U) { long M = 0; for (int i = 31; i >...