結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2018-02-19 19:51:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 241 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 23,424 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 13:20:29 |
合計ジャッジ時間 | 626 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&a); | ~~~~~^~~~~~~~~ main.cpp:8:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&b); | ~~~~~^~~~~~~~~
ソースコード
#include <cstdio> #include <cstdlib> int main(void) { int a,b; scanf("%d",&a); scanf("%d",&b); if ( 456 < a || a < 0 ){ abort(); }else if ( b < 1 || b > 123 ){ abort(); }else{ printf("%d\n",a/b+1); } return 0; }