結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-10 00:21:11 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-23 05:03:56 |
| 合計ジャッジ時間 | 1,065 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 15 |
ソースコード
#include <stdio.h>
int main(void) {
float K, L, j, total;
float i;
int d;
scanf("%f%f",&L,&K);
i = L/(2*K);
if (i==1){
printf("%d\n", 0);
}
else{
j = L/(2*K);
total = j*K;
d = (int)total;
printf("%d\n", d);
}
return 0;
}