結果

問題 No.373 かけ算と割った余り
ユーザー hayakawa4739hayakawa4739
提出日時 2016-06-28 13:16:58
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 131 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 04:32:59
合計ジャッジ時間 1,714 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    8 |         scanf("%d %d %d %d",a,b,c,d);
      |                ~^           ~
      |                 |           |
      |                 int *       int
main.c:8:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
    8 |         scanf("%d %d %d %d",a,b,c,d);
      |                   ~^          ~
      |                    |          |
      |                    int *      int
main.c:8:23: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=]
    8 |         scanf("%d %d %d %d",a,b,c,d);
      |                      ~^         ~
      |                       |         |
      |                       int *     int
main.c:8:26: warning: format ‘%d’ expects argument of type ‘int *’, but argument 5 has type ‘int’ [-Wformat=]
    8 |         scanf("%d %d %d %d",a,b,c,d);
      |                         ~^        ~
      |                          |        |
      |                          int *    int
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%d %d %d %d",a,b,c,d);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <limits.h>

int main(void){

	int a,b,c,d;

	scanf("%d %d %d %d",a,b,c,d);

	printf("%d",(a*b*c)%d);
}
0