結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-20 13:48:34 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 324 ms / 5,000 ms |
| コード長 | 175 bytes |
| コンパイル時間 | 422 ms |
| コンパイル使用メモリ | 24,448 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-02-20 13:48:35 |
| 合計ジャッジ時間 | 1,491 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int a, b, i=1;
scanf("%d %d", &a, &b);
while(a*i < b){
i++;
}
printf("%d", i);
return 0;
}