結果
問題 |
No.46 はじめのn歩
|
ユーザー |
|
提出日時 | 2016-07-23 18:58:37 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 15:09:47 |
合計ジャッジ時間 | 711 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%f",&a); | ^~~~~~~~~~~~~~ main.c:10:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%f",&b); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include<float.h> int main(void) { float a, b; int result; scanf("%f",&a); scanf("%f",&b); if(b / a == 1) result = b / a; else result = (b / a) + 1; printf("%d\n",result); return(0); }