結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
kachipan
|
| 提出日時 | 2023-06-23 11:21:09 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 35,136 KB |
| 最終ジャッジ日時 | 2026-02-22 10:55:13 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 22 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main()
{
int length = 0;
int eatLength = 0;
int eatCnt = 0;
scanf("%d", length);
scanf("%d", eatLength);
while (true)
{
if (eatCnt + eatLength < length / 2)
{
eatCnt += eatLength;
}
else
{
printf("%d\n", eatCnt);
return 0;
}
}
}
kachipan