結果
| 問題 | No.651 E869120 and Driving |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-23 22:35:46 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 1,000 ms |
| + 849µs | |
| コード長 | 1,280 bytes |
| 記録 | |
| コンパイル時間 | 2,518 ms |
| コンパイル使用メモリ | 86,000 KB |
| 実行使用メモリ | 43,984 KB |
| 最終ジャッジ日時 | 2026-09-02 08:41:44 |
| 合計ジャッジ時間 | 3,845 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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());
}
}
}