結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2018-07-11 02:34:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 151 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 27,008 KB |
最終ジャッジ日時 | 2025-01-06 11:58:41 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:11: warning: too many arguments for format [-Wformat-extra-args] 4 | scanf("%d", &A, &B); | ^~~~ main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d", &A, &B); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include <cstdio> int main () { int A, B; scanf("%d", &A, &B); if (B % A == 0) printf("%d\n", B / A); else printf("%d\n", B / A + 1); }