結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2018-10-23 00:09:48 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 176 ms / 5,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 03:57:12 |
合計ジャッジ時間 | 1,535 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <stdio.h>int main(void){int pocky_len, turn_len;int yu = 0;scanf("%d%d", &pocky_len, &turn_len);while(pocky_len > 0){pocky_len -= turn_len * 2;if(pocky_len <= 0){break;}yu += turn_len;}printf("%d\n", yu);return 0;}