結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2020-03-19 18:34:03 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 190 ms / 5,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 29,952 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 03:25:38 |
合計ジャッジ時間 | 1,540 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>int main(void){int l,k;int a=0;scanf("%d %d",&l,&k);for(;;){if(l-k-k<=0){printf("%d\n",a);return 0;}else{a=a+k;l=l-k-k;}}}