結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2018-05-05 03:43:32 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 01:31:02 |
合計ジャッジ時間 | 704 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&a); | ^~~~~~~~~~~~~~ main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&b); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int a, b, i; scanf("%d",&a); scanf("%d",&b); if(a>=b){ i = 1; } else{ i = b / a + 1; } printf("%d", i); return 0; }