?? 2191.cpp
字號:
/* This Code is Submitted by wywcgs for Problem 2191 on 2006-04-02 at 22:43:43 */
#include <cstdio>
int main()
{
int t, T, i;
scanf("%d", &T);
for(t = 1; t <= T; t++) {
int n, d, b, e; scanf("%d %d %d %d", &n, &d, &b, &e);
printf("Problem set %d: %d / %d, base 7 digits %d through %d: ", t, n, d, b, e);
n %= d;
for(i = 0; i <= e; i++) {
n *= 7;
if(i >= b) printf("%d", n / d);
n %= d;
}
putchar('\n');
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -