結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
rim617_
|
| 提出日時 | 2016-09-22 23:05:48 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 28,744 KB |
| 最終ジャッジ日時 | 2026-02-23 22:23:46 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main() {
int a, b, n;
scanf("%d %d", &a, &b);
n = b / a;
if (b%a) {
n++;
}
printf("%d\n", n);
return 0;
}
rim617_