#include <iostream> using namespace std; int main(){ int test; int i, ans; double a, b, dis; cin >> test; for(i=0; i < test; i++){ cout << "Case #" << i << ":" << endl; cin >> a; cin >> b; ans = a/b; dis = a/b; dis = dis - ans; if(dis < 0){ dis *= -1; } if(dis >= 0.5){ ans += 1; } cout << ans << endl; } return 0; }
提出時間 | 2019-11-29 18:42:06 |
問題 | A - 整数の割り算 |
ユーザ名 | Yakiniku_Ogore |
状態 | 形式違反 |
正解率 | N/A |
# | 状態 | 詳細情報 |
---|---|---|
正解か誤答の場合のみ表示されます. |