poj 2924(水题)
作者:互联网
#include<iostream> #include<cstdio> using namespace std; int main(){ long long n,m,i,ans; scanf("%lld",&i); for(int kase=1;kase<=i;kase++){ scanf("%lld%lld",&n,&m); printf("Scenario #%d:\n",kase); printf("%lld\n\n",(n+m)*(m-n+1)/2); } return 0; }
标签:std,main,水题,int,2924,long,poj,kase,include 来源: https://www.cnblogs.com/stevenzrx/p/15085457.html