結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
Q43qBmBGuo2VB0s
|
| 提出日時 | 2018-08-22 23:12:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-25 23:03:46 |
| 合計ジャッジ時間 | 751 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
ソースコード
#include "stdio.h"
int main(void){
int a= 0;
int b = 0;
int num = 0;
int numb = 0;
scanf("%d %d",&a,&b);
num = b % a;
if(num != 0){
numb = (b/a) + 1;
}else{
numb = b/a;
}
printf("%d\n",numb);
return 0;
}
Q43qBmBGuo2VB0s