結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2015-12-06 13:34:19 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 1,000 ms |
| コード長 | 558 bytes |
| 記録 | |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 116,180 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2026-03-28 12:34:16 |
| 合計ジャッジ時間 | 1,500 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 ());
}
}
}
nanophoto12