結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2023-05-30 17:38:25 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 206 ms / 5,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 1,204 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 12:19:44 |
合計ジャッジ時間 | 1,906 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> int main() { int l, k; scanf("%d%d", &l, &k); int a = 0; while (k * 2 < l) { l -= k * 2; a += k; } printf("%d", a); return 0; }