結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-24 11:10:36 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 1,000 ms |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 647 ms |
| コンパイル使用メモリ | 103,296 KB |
| 実行使用メモリ | 18,560 KB |
| 最終ジャッジ日時 | 2026-03-28 17:06:09 |
| 合計ジャッジ時間 | 1,553 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_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.Linq;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string[] su = Console.ReadLine().Split();
int cnt = int.Parse(su[0]) - 1;
int h = int.Parse(su[1]);
int m = int.Parse(su[2]);
int time = int.Parse(su[3]);
m += time * cnt;
h += m / 60;
h %= 24;
m %= 60;
Console.WriteLine(h);
Console.WriteLine(m);
Console.Read();
}
}