编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#49335 | #1007. G. 兼济天下 | Compile Error | 0 | 0 ms | 0 K | C++ 11 / 353 B | cgyz | 2021-06-28 13:42:49 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll n, m;
int main() {
cin >> T;
while (T--) {
cin >> n >> m;
if (m % (n - 1))
printf("CSFNB!");
else {
int ave = (n + m - 1) / (n - 1);
double ave2 = (double)m / (n - 1);
double ans = ave2 + ave * (n - 2) - m;
printf("%.6lf", ans);
}
}
}
编译信息
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:9:10: error: 'T' was not declared in this scope
cin>>T;
^