結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2019-06-27 14:21:15 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,014 bytes |
コンパイル時間 | 771 ms |
コンパイル使用メモリ | 108,720 KB |
実行使用メモリ | 26,260 KB |
最終ジャッジ日時 | 2024-06-27 22:16:24 |
合計ジャッジ時間 | 1,905 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 5 |
コンパイルメッセージ
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; namespace yukicoderTest { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int ndone = int.Parse(input[0]); int hour = int.Parse(input[1]); int min = int.Parse(input[2]); int retmin = int.Parse(input[3]); int plusmin = int.Parse(input[3]); if (ndone >1) { plusmin = (ndone-1) * retmin; } else if (ndone==1) { plusmin = 0; } min = min + plusmin; while (min>59) { hour++; min -= 60; } if (hour >= 24) { hour = (24-hour)*-1; } Console.WriteLine(hour); Console.WriteLine(min); } } }