結果

問題 No.296 n度寝
ユーザー nanophoto12nanophoto12
提出日時 2015-12-06 13:34:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 1,000 ms
コード長 558 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 104,256 KB
実行使用メモリ 23,992 KB
最終ジャッジ日時 2023-09-21 03:54:01
合計ジャッジ時間 4,129 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
21,948 KB
testcase_01 AC 61 ms
23,840 KB
testcase_02 AC 61 ms
23,992 KB
testcase_03 AC 61 ms
21,992 KB
testcase_04 AC 61 ms
21,844 KB
testcase_05 AC 62 ms
23,780 KB
testcase_06 AC 62 ms
23,916 KB
testcase_07 AC 61 ms
21,880 KB
testcase_08 AC 62 ms
23,920 KB
testcase_09 AC 62 ms
23,836 KB
testcase_10 AC 61 ms
21,892 KB
testcase_11 AC 62 ms
21,920 KB
testcase_12 AC 62 ms
21,880 KB
testcase_13 AC 62 ms
21,952 KB
testcase_14 AC 62 ms
21,884 KB
testcase_15 AC 62 ms
22,024 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace No296
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			IList<string> tokens = Console.ReadLine ().Split (' ');
			var f = tokens.Select(t=>(long)Convert.ToInt64(t)).ToArray();

			long current = f [1] * 60 + f [2];
			long add = (f [0]-1) * f [3];

			long toDay = (current + add) % (24L * 60L);
			long hour = toDay / 60L;
			long minute = toDay % 60L;

			Console.WriteLine (hour.ToString ());					
			Console.WriteLine (minute.ToString ());					
		}
	}
}
0