結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2019-08-31 18:44:19 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 592 ms / 5,000 ms |
コード長 | 984 bytes |
コンパイル時間 | 1,704 ms |
コンパイル使用メモリ | 110,064 KB |
実行使用メモリ | 26,000 KB |
最終ジャッジ日時 | 2024-11-25 02:30:26 |
合計ジャッジ時間 | 4,589 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
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; namespace ConsoleApp1 { class Program { static void Main(string[] args) { #if LocalDebug var exStdIn = new System.IO.StreamReader("stdin.txt"); System.Console.SetIn(exStdIn); #endif var Input = GetList(); var Length = int.Parse(Input[0]); var Eat = int.Parse(Input[1]); var time = 0; while (true) { if (Length <= (Eat * 2)) { break; } Length -= (Eat * 2); time++; } Console.WriteLine(Eat * time); #if LocalDebug System.Console.ReadKey(); #endif } static int GetData() { return int.Parse(Console.ReadLine()); } static string[] GetList() { return Console.ReadLine().Split(' '); } } }