結果

問題 No.63 ポッキーゲーム
ユーザー jin128
提出日時 2016-08-25 21:00:29
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 309 bytes
コンパイル時間 2,895 ms
コンパイル使用メモリ 108,988 KB
実行使用メモリ 25,684 KB
最終ジャッジ日時 2024-11-08 02:23:53
合計ジャッジ時間 3,736 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class S16_pochygame{
  public static int Main(){
    int len, pace, t;
    len = int.Parse(Console.ReadLine());
    pace = int.Parse(Console.ReadLine());

    t = 0;
    while(len > 0){
      len -= 2 * pace;
      t++;
    }
    t--;
    Console.WriteLine("{0}",pace * t);
    return 0;
  }
}
0