sgu 276

来源:互联网 发布:信捷plc用什么编程软件 编辑:程序博客网 时间:2024/06/06 05:29
#include <stdio.h>int main() {    int p, s;    int t[] = {1, 300, 900, 1800, 10800 };    scanf("%d%d", &s, &p);    p -= s;    s = 0;    while (t[s] <= p) ++s;    printf("%d\n", s);    return 0;}

原创粉丝点击