結果

問題 No.311 z in FizzBuzzString
ユーザー YatsukuYatsuku
提出日時 2015-12-22 21:14:44
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,500 ms
コード長 193 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 21:28:32
合計ジャッジ時間 678 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%ld", &num);
      |         ^~~~~~~~~~~~~~~~~~

ソースコード

diff #

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

int main(void)
{
	uint64_t num;
	scanf("%ld", &num);

	uint_fast64_t count = 0;
	count = ((num / 3 + num / 5)*2);
	printf("%ld\n", count);

	return 0;
}
0