###### tags: `CPE-數學計算`
# *The Hotel with Infinite Rooms*
## 題目:

```
#include<stdio.h>
int main(){
long long S, D;//S是人數 D是想查的天數
while(scanf("%lld %lld", &S, &D) != EOF){
long long num = S;//天數統計
while(num < D){
S++;
num = num + S;
}
printf("%lld\n", S);
}
return 0;
}
```