結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
![]() |
提出日時 | 2017-01-23 20:51:59 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 155 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 21:53:27 |
合計ジャッジ時間 | 554 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:13:10: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 13 | printf("%d",(n/3*2)+(n/5*2)); | ~^ ~~~~~~~~~~~~~~~ | | | | int long long int | %lld main.c:10:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%lld",&n); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { long long n; char s[1000000]; int i; int f=0; int g; scanf("%lld",&n); g=n; printf("%d",(n/3*2)+(n/5*2)); return 0; }