結果
問題 | No.296 n度寝 |
ユーザー | Lo_OT |
提出日時 | 2018-03-22 22:20:24 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,026 bytes |
コンパイル時間 | 2,210 ms |
コンパイル使用メモリ | 71,340 KB |
実行使用メモリ | 57,500 KB |
最終ジャッジ日時 | 2023-09-07 01:52:26 |
合計ジャッジ時間 | 5,237 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 124 ms
55,684 KB |
testcase_04 | AC | 124 ms
56,256 KB |
testcase_05 | AC | 123 ms
55,992 KB |
testcase_06 | AC | 124 ms
56,056 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 124 ms
56,064 KB |
testcase_11 | AC | 123 ms
56,212 KB |
testcase_12 | WA | - |
testcase_13 | AC | 126 ms
56,244 KB |
testcase_14 | AC | 122 ms
55,864 KB |
testcase_15 | WA | - |
ソースコード
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); Yukicoder solver = new Yukicoder(); solver.solve(1, in, out); out.close(); } static class Yukicoder { public void solve(int testNumber, Scanner in, PrintWriter out) { int N = in.nextInt(); int H = in.nextInt(); int M = in.nextInt(); int T = in.nextInt(); int timeToSec = H * 60 + M; timeToSec += (T) * (N - 1); out.println(timeToSec / 60); timeToSec %= 60; out.println(timeToSec); } } }