結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2022-12-11 12:57:44 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 1,712 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 10:06:57 |
合計ジャッジ時間 | 1,281 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 5 |
ソースコード
#include <stdio.h> int main(void){ int L, K; scanf("%d %d\n", &L, &K); L /= 2; if(!(L/K)) printf("0\n"); else if(L%K) printf("%d\n", L/K*K); else printf("%d\n", L/K*K - K); return 0; }