結果

問題 No.373 かけ算と割った余り
コンテスト
ユーザー zeosutt
提出日時 2016-06-09 01:23:15
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 73 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 192 ms
コンパイル使用メモリ 35,192 KB
最終ジャッジ日時 2026-02-23 21:35:10
ジャッジサーバーID
(参考情報)
judge5 / judge1
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:12: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
      |            ^~~~
main.c: In function 'main':
main.c:1:12: warning: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:20: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
      |                    ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:50: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
      |                                                  ^~~~~~
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:50: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'

ソースコード

diff #
raw source code

long a,b,c;main(d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b%d*c%d);}
0