結果

問題 No.651 E869120 and Driving
ユーザー tetsutetsu
提出日時 2018-02-23 22:35:46
言語 Java19
(openjdk 21)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 1,280 bytes
コンパイル時間 3,661 ms
コンパイル使用メモリ 78,676 KB
実行使用メモリ 56,268 KB
最終ジャッジ日時 2023-10-22 07:50:30
合計ジャッジ時間 5,182 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
54,480 KB
testcase_01 AC 95 ms
55,984 KB
testcase_02 AC 91 ms
54,484 KB
testcase_03 AC 88 ms
54,752 KB
testcase_04 AC 85 ms
54,476 KB
testcase_05 AC 91 ms
56,268 KB
testcase_06 AC 85 ms
54,544 KB
testcase_07 AC 85 ms
54,540 KB
testcase_08 AC 85 ms
54,476 KB
testcase_09 AC 84 ms
54,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class A {

	public static void main(String[] args) throws IOException {
		MyScanner sc = new MyScanner(System.in);
		PrintWriter pw=new PrintWriter(System.out);
		int a = sc.nextInt();
		int k = a/10;
		int m = 6*k;
		int h = m/60;
		int n = m%60;
		if(n>10) {
			pw.println((10+h)+":"+n);
		} else {
			pw.print((10+h)+":0"+n);
		}
		pw.close();
	}

	static class MyScanner
	{
		BufferedReader br;
		StringTokenizer st;
		public MyScanner(InputStream s)
		{
			br=new BufferedReader(new InputStreamReader(s));
		}
		public String nextLine() throws IOException
		{
			return br.readLine();
		}
		public String next() throws IOException
		{
			while(st==null || !st.hasMoreTokens())
				st=new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public int nextInt() throws IOException
		{
			return Integer.parseInt(next());
			
		}
		public double nextDouble() throws IOException
		{
			return Double.parseDouble(next());
		}
		public boolean ready() throws IOException
		{
			return br.ready();
		}
		public long nextLong() throws IOException
		{
			return Long.parseLong(next());
		}
	}
}
0