結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
pracode
|
| 提出日時 | 2018-09-14 20:58:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 29,824 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 05:55:26 |
| 合計ジャッジ時間 | 956 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%d%d",&dis,&vel);
| ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main()
{
int vel;
int dis;
double step;
scanf("%d%d",&dis,&vel);
step=floor(dis/vel);
printf("%d\n",int(step));
return 0;
}
pracode