結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-17 07:13:04 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 121 ms / 1,000 ms |
| コード長 | 682 bytes |
| コンパイル時間 | 5,716 ms |
| コンパイル使用メモリ | 74,760 KB |
| 実行使用メモリ | 41,684 KB |
| 最終ジャッジ日時 | 2024-10-01 09:12:01 |
| 合計ジャッジ時間 | 8,054 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
import java.io.*;
import java.util.*;
public class Main_yukicoder525 {
private static Scanner sc;
private static Printer pr;
private static void solve() {
String[] hm = sc.next().split(":");
int hh = Integer.parseInt(hm[0]);
int mm = Integer.parseInt(hm[1]);
hh = (hh + (mm + 5) / 60) % 24;
mm = (mm + 5) % 60;
pr.printf("%02d:%02d\n", hh, mm);
}
// ---------------------------------------------------
public static void main(String[] args) {
sc = new Scanner(System.in);
pr = new Printer(System.out);
solve();
pr.close();
sc.close();
}
private static class Printer extends PrintWriter {
Printer(PrintStream out) {
super(out);
}
}
}