結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-09-08 19:03:18 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 1,000 ms |
| コード長 | 645 bytes |
| コンパイル時間 | 911 ms |
| コンパイル使用メモリ | 103,040 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-11-07 05:10:20 |
| 合計ジャッジ時間 | 2,011 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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;
public class Hello{
public static void Main(){
// Here your code !
//int a;
//a = int.Parse(Console.ReadLine()); //?¨??????\???
var tmp = Console.ReadLine().Split();
int n = int.Parse(tmp[0]);
int h = int.Parse(tmp[1]);
int m = int.Parse(tmp[2]);
int t = int.Parse(tmp[3]);
TimeSpan ts = new TimeSpan(h, m, 0);
TimeSpan ts2 = new TimeSpan(0, (n-1)*t, 0);
ts =ts+ts2;
//System.Console.WriteLine(ts.Hours+":"+ts.Minutes+":"+ts.Seconds);
Console.WriteLine(ts.Hours);
Console.WriteLine(ts.Minutes);
}
}
kokoa1046