結果

問題 No.63 ポッキーゲーム
ユーザー funakoshi
提出日時 2019-08-08 11:07:42
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 177 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 28,416 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 19:05:37
合計ジャッジ時間 1,334 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    int plength,elength,yuulength=0;;
    scanf("%d %d",&plength,&elength);
    while(1)
    {
        plength-=elength*2;
        if(plength<=0)
        {
            break;
        }
        yuulength+=elength;
    }
    printf("%d",yuulength);
}
0