結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2015-12-06 13:34:19 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 558 bytes |
コンパイル時間 | 734 ms |
コンパイル使用メモリ | 111,452 KB |
実行使用メモリ | 27,552 KB |
最終ジャッジ日時 | 2024-07-06 22:33:01 |
合計ジャッジ時間 | 1,673 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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 ()); } } }