結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2018-09-14 21:12:01 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 30,208 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 06:13:29 |
合計ジャッジ時間 | 802 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d%d",&sqstep,&relsta); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <math.h> int main() { int relsta; int sqstep; double relstep; scanf("%d%d",&sqstep,&relsta); relstep=floor(sqstep/relsta)+1; printf("%d",(int)relstep); return 0; }