Submission #201489


Source Code Expand

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	MyScanner sc = new MyScanner();
	Scanner sc2 = new Scanner(System.in);

	void run() {
		int N = sc.nextInt();
		int h = N / 3600;
		N = N % 3600;
		int m = N / 60;
		int s = N % 60;
		System.out.printf("%02d:", h);
		System.out.printf("%02d:", m);
		System.out.printf("%02d¥n", s);
	}

	public static void main(String[] args) {
		new Main().run();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	void debug2(int[][] array) {
		for (int i = 0; i < array.length; i++) {
			for (int j = 0; j < array[i].length; j++) {
				System.out.print(array[i][j]);
			}
			System.out.println();
		}
	}

	class MyScanner {
		int nextInt() {
			try {
				int c = System.in.read();
				while (c != '-' && (c < '0' || '9' < c))
					c = System.in.read();
				if (c == '-')
					return -nextInt();
				int res = 0;
				do {
					res *= 10;
					res += c - '0';
					c = System.in.read();
				} while ('0' <= c && c <= '9');
				return res;
			} catch (Exception e) {
				return -1;
			}
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String next() {
			try {
				StringBuilder res = new StringBuilder("");
				int c = System.in.read();
				while (Character.isWhitespace(c))
					c = System.in.read();
				do {
					res.append((char) c);
				} while (!Character.isWhitespace(c = System.in.read()));
				return res.toString();
			} catch (Exception e) {
				return null;
			}
		}
	}
}

Submission Info

Submission Time
Task B - 入浴時間
User suigingin
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 1573 Byte
Status WA
Exec Time 461 ms
Memory 23476 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 12
Set Name Test Cases
All test_1.txt, test_17977.txt, test_25298.txt, test_36922.txt, test_44309.txt, test_52415.txt, test_60165.txt, test_65487.txt, test_70993.txt, test_80915.txt, test_84810.txt, test_86399.txt
Case Name Status Exec Time Memory
sample_01.txt WA 455 ms 23348 KB
sample_02.txt WA 452 ms 23472 KB
test_1.txt WA 450 ms 23468 KB
test_17977.txt WA 460 ms 23444 KB
test_25298.txt WA 460 ms 23336 KB
test_36922.txt WA 459 ms 23476 KB
test_44309.txt WA 458 ms 23476 KB
test_52415.txt WA 455 ms 23468 KB
test_60165.txt WA 459 ms 23468 KB
test_65487.txt WA 460 ms 23344 KB
test_70993.txt WA 457 ms 23468 KB
test_80915.txt WA 461 ms 23352 KB
test_84810.txt WA 457 ms 23344 KB
test_86399.txt WA 450 ms 23352 KB