結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
|
提出日時 | 2017-03-14 16:26:00 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 21:55:31 |
合計ジャッジ時間 | 679 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 11 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:15:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 15 | printf("%d",b+c); | ~^ ~~~ | | | | int long long int | %lld main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%lld",&n); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { long long int n,b=0,c=0; scanf("%lld",&n); if (n%3==0) b=2*(n/3); if (n%5==0) c=2*(n/5); printf("%d",b+c); return 0; }