(I3
I109
I9
(dp0
Vholidays.%l
p1
(Vholidays.cpp
p2
S'#include <iostream>\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n    int a1,a2,a3,b1,b2,b3,sum,today,holidays=0;\r\n    char dot;\r\n    cin>>a1>>dot>>a2>>dot>>a3;\r\n    cin>>b1>>dot>>b2>>dot>>b3;\r\n    int c1=1, c2=1, c3=1900;\r\n    if (a3<b3) cout<<0;\r\n    else if (a2<b2) cout<<0;\r\n         else if (a1<b1) cout<<0;\r\n              else\r\n              {\r\n                  while (c1*c2*c3!=a1*a2*a3)\r\n                  {\r\n                      c1++;\r\n                      sum++;\r\n                  }\r\n                  int q=sum%7;\r\n                  switch (q)\r\n                  {\r\n                      case (0) : today=7;break;\r\n                      case (1) : today=6;break;\r\n                      case (2) : today=5;break;\r\n                      case (3) : today=4;break;\r\n                      case (4) : today=3;break;\r\n                      case (5) : today=2;break;\r\n                      case (6) : today=1;break;\r\n                  }\r\n\r\n                  while (a1*a2*a3!=b1*b2*b3)\r\n                  {\r\n                      if (today==6 || today==7) holidays++;\r\n                      a1++;\r\n                      today++;\r\n                      if (today>7) today-=7;\r\n                  }\r\n              }\r\n    cout<<holidays<<endl;\r\n    return 0;\r\n}\r\n'
p3
tp4
stp5
.