結果

問題 No.63 ポッキーゲーム
ユーザー kdaiki211
提出日時 2017-01-09 01:07:41
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 05:21:22
合計ジャッジ時間 898 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%u %u", &L, &K);
      |         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdint.h>
#include <stdio.h>
#include <string.h>

int main(void)
{
	uint32_t L, K;
	uint32_t ans;
	scanf("%u %u", &L, &K);
	ans = K * ((L - 1) / (2 * K));
	printf("%u\n", ans);
	return 0;
}

0