Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119835 wjx10 过生日 C++ Wrong Answer 1 MS 272 KB 399 2025-05-19 20:50:39

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int T; cin>>T; int a,b,sum; for(int i=1;i<=T;i++) { cin>>a>>b; if (a%4==0&&a%100!=0) { sum=4*(b-1); } else if(a%4==0) { sum=4*b; } else { a++; } cout<<sum; } return 0; }


Run Info:

------Input------
20 2000 10 1999 11 1989 24 1900 100 2008 10000 2012 111 2013 123 1994 1 1996 1 2004 1 2011 1 1899 1 1988 900 2015 2000 1896 5000 1999 9 2001 3333 3000 400 1888 8888 2010 9000
------Answer-----
2036 2040 2084 2312 43240 2464 2520 1996 1996 2004 2012 1904 5692 10260 22512 2032 15744 4648 38536 39124
------Your output-----
4040404003999644044044000003596359619996199961999616003554835548