結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
nanatutmc
|
| 提出日時 | 2019-09-26 00:41:04 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 187 bytes |
| 記録 | |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 28,996 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:21:09 |
| 合計ジャッジ時間 | 705 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d", &L, &K);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
main() {
int L, K;
scanf("%d %d", &L, &K);
int count = L / (K*2);
if (L == (K*2)*count)
count--;
printf("%d\n", K*count);
}
nanatutmc