結果
| 問題 |
No.63 ポッキーゲーム
|
| ユーザー |
|
| 提出日時 | 2018-08-10 14:04:35 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 338 bytes |
| コンパイル時間 | 809 ms |
| コンパイル使用メモリ | 110,552 KB |
| 実行使用メモリ | 28,980 KB |
| 最終ジャッジ日時 | 2024-09-23 05:42:48 |
| 合計ジャッジ時間 | 2,193 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
class Program
{
static void Main(string[] args)
{
String[] input = Console.ReadLine().Split(' ');
double a = double.Parse(input[0]) / double.Parse(input[1]) / 2;
double b = Math.Floor(a);
if (a == b) { b--; }
Console.WriteLine(a == 1 ? 0 : int.Parse(input[1]) * b);
}
}