結果
問題 | No.46 はじめのn歩 |
ユーザー |
![]() |
提出日時 | 2024-07-08 09:06:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 138 bytes |
コンパイル時間 | 606 ms |
コンパイル使用メモリ | 48,640 KB |
最終ジャッジ日時 | 2025-02-22 02:33:32 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lf%lf",&a,&b); | ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <math.h> int main(){ double a,b; scanf("%lf%lf",&a,&b); int aws=ceil(b/a); printf("%d",aws); }