結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
![]() |
提出日時 | 2015-12-08 18:32:31 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,500 ms |
コード長 | 142 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 21:25:30 |
合計ジャッジ時間 | 771 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:19: warning: format ‘%lld’ expects argument of type ‘long long int *’, but argument 2 has type ‘long int *’ [-Wformat=] 4 | scanf("%lld",&n); | ~~~^ ~~ | | | | | long int * | long long int * | %ld main.c:8:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=] 8 | printf("%lld\n",ans); | ~~~^ ~~~ | | | | | long int | long long int | %ld main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lld",&n); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>main(){long int n, x3, x5, ans;scanf("%lld",&n);x3=n/3;x5=n/5;ans=2*x3+2*x5;printf("%lld\n",ans);return 0;}