結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2019-01-20 09:03:59 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 191 ms / 5,000 ms |
コード長 | 185 bytes |
コンパイル時間 | 997 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 02:27:36 |
合計ジャッジ時間 | 1,889 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <stdio.h>int main(void){long l,ans;char k;scanf("%ld %hhd",&l,&k);ans = 0;l -= 2*k;while (l>0) {l -= 2*k;ans += k;}printf("%ld\n",ans);return 0;}