結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2015-12-06 13:34:19 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 1,000 ms |
| + 690µs | |
| コード長 | 558 bytes |
| 記録 | |
| コンパイル時間 | 492 ms |
| コンパイル使用メモリ | 107,136 KB |
| 実行使用メモリ | 20,096 KB |
| 最終ジャッジ日時 | 2026-08-10 08:35:44 |
| 合計ジャッジ時間 | 2,386 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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