結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2018-02-18 20:00:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 40 ms / 1,000 ms |
コード長 | 622 bytes |
コンパイル時間 | 3,105 ms |
コンパイル使用メモリ | 110,932 KB |
実行使用メモリ | 27,132 KB |
最終ジャッジ日時 | 2024-07-04 02:23:33 |
合計ジャッジ時間 | 4,255 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; namespace _296 { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 1; i < x[0]; i++) { x[2] += x[3]; if (x[2] >= 60) { x[1] += x[2] / 60; x[2] %= 60; } if (x[1] >= 24) { x[1] %= 24; } } Console.WriteLine(x[1]); Console.WriteLine(x[2]); } } }