結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
mban
|
| 提出日時 | 2016-11-04 15:27:45 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 1,000 ms |
| コード長 | 448 bytes |
| コンパイル時間 | 845 ms |
| コンパイル使用メモリ | 109,064 KB |
| 実行使用メモリ | 27,372 KB |
| 最終ジャッジ日時 | 2024-07-07 02:51:22 |
| 合計ジャッジ時間 | 1,865 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Text;
using System.Threading.Tasks;
class Magatro
{
static void Main()
{
int[] q = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = q[0], H = q[1], M = q[2], T = q[3];
M += T * (N - 1);
H += M / 60;
M %= 60;
H %= 24;
Console.WriteLine(H);
Console.WriteLine(M);
}
}
mban