diff --git a/45A Codecraft III/45A.cpp b/45A Codecraft III/45A.cpp new file mode 100644 index 0000000..2b437b9 --- /dev/null +++ b/45A Codecraft III/45A.cpp @@ -0,0 +1,51 @@ +#include +using namespace std; + +#define ll long long +#define ul unsigned long long +#define pb push_back +#define ss second +#define ff first +#define fr(n) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<months={"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; + string s; + int n; + cin>>s>>n; + auto it=find(all(months),s); + int index=(n+it-months.begin())%12; + cout<> TC; + while (TC--) solve(); +} \ No newline at end of file diff --git a/855A Tom Riddle's Diary/855A.cpp b/855A Tom Riddle's Diary/855A.cpp new file mode 100644 index 0000000..a3eda9b --- /dev/null +++ b/855A Tom Riddle's Diary/855A.cpp @@ -0,0 +1,59 @@ +#include +using namespace std; + +#define ll long long +#define ul unsigned long long +#define pb push_back +#define ss second +#define ff first +#define fr(n) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>n; + setnames; + fr(n) + { + string s; + cin>>s; + if(names.find(s)==names.end()) + { + no; + names.insert(s); + } + else + yes; + } +} + +int main() +{ + fast_io; + int TC = 1; + //cin >> TC; + while (TC--) solve(); +} \ No newline at end of file