結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
pracode
|
| 提出日時 | 2018-09-14 21:11:08 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 47,360 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-27 17:19:33 |
| 合計ジャッジ時間 | 2,306 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 12 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:11:18: warning: 'relsta' is used uninitialized [-Wuninitialized]
11 | relstep=floor(sqstep/relsta)+1;
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:5:9: note: 'relsta' was declared here
5 | int relsta;
| ^~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main()
{
int relsta;
int sqstep;
double relstep;
scanf("%d%d",&sqstep,&relstep);
relstep=floor(sqstep/relsta)+1;
printf("%d",(int)relstep);
return 0;
}
pracode