結果
| 問題 |
No.651 E869120 and Driving
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-23 22:35:46 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 1,000 ms |
| コード長 | 1,280 bytes |
| コンパイル時間 | 3,500 ms |
| コンパイル使用メモリ | 78,644 KB |
| 実行使用メモリ | 52,388 KB |
| 最終ジャッジ日時 | 2024-09-22 08:54:13 |
| 合計ジャッジ時間 | 4,792 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
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());
}
}
}