提出 #21804673


ソースコード 拡げる

#include <cstdio>

int main(){
  int x, y, z;
  scanf("%d%d%d", &x, &y, &z);

  printf("%d\n", (y*z-1)/x);

  return 0;
}

提出情報

提出日時
問題 A - Competition
ユーザ ryuhei
言語 C++ (GCC 9.2.1)
得点 100
コード長 132 Byte
結果 AC
実行時間 4 ms
メモリ 1736 KiB

コンパイルエラー

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
    5 |   scanf("%d%d%d", &x, &y, &z);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 20
セット名 テストケース
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_hand.txt, 05_hand.txt, 06_random.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt, 14_random.txt, 15_random.txt, 16_random.txt, 17_random.txt, 18_random.txt, 19_random.txt, 20_random.txt
ケース名 結果 実行時間 メモリ
01_sample.txt AC 1 ms 1724 KiB
02_sample.txt AC 1 ms 1724 KiB
03_sample.txt AC 1 ms 1656 KiB
04_hand.txt AC 1 ms 1640 KiB
05_hand.txt AC 1 ms 1668 KiB
06_random.txt AC 3 ms 1644 KiB
07_random.txt AC 1 ms 1680 KiB
08_random.txt AC 1 ms 1732 KiB
09_random.txt AC 1 ms 1632 KiB
10_random.txt AC 2 ms 1736 KiB
11_random.txt AC 4 ms 1652 KiB
12_random.txt AC 2 ms 1676 KiB
13_random.txt AC 1 ms 1640 KiB
14_random.txt AC 1 ms 1652 KiB
15_random.txt AC 2 ms 1640 KiB
16_random.txt AC 2 ms 1668 KiB
17_random.txt AC 3 ms 1684 KiB
18_random.txt AC 1 ms 1688 KiB
19_random.txt AC 1 ms 1728 KiB
20_random.txt AC 1 ms 1656 KiB