結果

問題 No.296 n度寝
ユーザー chankou0920chankou0920
提出日時 2017-10-26 18:07:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 471 bytes
コンパイル時間 811 ms
コンパイル使用メモリ 106,928 KB
実行使用メモリ 26,328 KB
最終ジャッジ日時 2024-05-01 15:14:00
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
23,904 KB
testcase_01 AC 30 ms
24,164 KB
testcase_02 AC 27 ms
22,192 KB
testcase_03 AC 26 ms
23,780 KB
testcase_04 AC 26 ms
23,968 KB
testcase_05 AC 26 ms
24,036 KB
testcase_06 AC 26 ms
24,096 KB
testcase_07 AC 41 ms
23,860 KB
testcase_08 AC 40 ms
24,108 KB
testcase_09 AC 25 ms
26,328 KB
testcase_10 AC 25 ms
24,168 KB
testcase_11 AC 26 ms
26,016 KB
testcase_12 AC 26 ms
22,068 KB
testcase_13 AC 26 ms
24,036 KB
testcase_14 AC 26 ms
26,012 KB
testcase_15 AC 25 ms
23,780 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public void Solve() {
		string[] s = Console.ReadLine().Split(' ');
		DateTime dt = new DateTime(2017, 10, 26, int.Parse(s[1]), int.Parse(s[2]), 0);
		int n = int.Parse(s[0]);
		int t = int.Parse(s[3]);
		for (int i = 1; i < n; i++) {
			dt = dt.AddMinutes(t);
		}
		Console.WriteLine(dt.Hour);
		Console.WriteLine(dt.Minute);
	}
	
	public static void Main(string[] args) {
		Program program = new Program();
		program.Solve();
	}
}
0