Compare commits

..

No commits in common. "25605159ccbf2abdb305b6d2d359f6b52396f1eb" and "e8b99240697b0befd6b7fdb1d500e231dcb95ef0" have entirely different histories.

3 changed files with 3 additions and 67 deletions

3
src/8/12/P11232.cpp Normal file
View File

@ -0,0 +1,3 @@
int main(){
}

View File

@ -1,26 +0,0 @@
#include <cstdint>
#include <ios>
#include <iostream>
using ll = int64_t;
const ll maxn = 1e5+5;
ll T,n,m,L,V,d[maxn],v[maxn],a[maxn];
static inline void solve(){
std::cin>>n>>m>>L>>V;
for(ll i=1;i<=n;i++){
std::cin>>d[i]>>v[i]>>a[i];
}
}
int main(){
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin>>T;
while(T--){
solve();
}
}

View File

@ -1,41 +0,0 @@
#include <cstdint>
#include <ios>
#include <iostream>
using ll = int64_t;
const ll md[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
ll m,d;
char c;
std::cin>>m>>c>>d;
if(12<m || m<1){
if(1<=d && d<=28){
std::cout<<"1\n";
}else{
if(m<20){
if(1<=d && d<=31){
std::cout<<"1\n";
}else{
std::cout<<"2\n";
}
}else{
if(m%10<=2){
std::cout<<"1\n";
}else{
if(1<=d && d<=md[m%10]){
std::cout<<"1\n";
}else{
std::cout<<"2\n";
}
}
}
}
}else if(1<=d && d<=md[m]){
std::cout<<"0\n";
}else{
std::cout<<"1\n";
}
}