নুসরাতের লোকাল ব্রাঞ্চ আর origin/main আলাদা পথে এগিয়েছে কি না সেটা বুঝতে হবে। মাহিন বলল, আগে গুনে দেখো লোকালে কয়টা commit আছে যা রিমোটে নেই (ahead) আর রিমোটে কয়টা আছে যা লোকালে নেই (behind); তারপর পরিস্থিতি অনুযায়ী কাজ ঠিক করো।
প্রথম লাইনে qটি প্রশ্ন। প্রতিটি লাইনে local_only remote_only related, যেখানে related বলে দুদিকের ইতিহাসের সাধারণ পূর্বপুরুষ আছে কি না (yes/no)।
প্রতিটি প্রশ্নের জন্য এক লাইনে ahead=<l> behind=<r> action=<action> ছাপাও। নিয়ম: দুটোই শূন্য হলে up-to-date; related না হলে diverged; behind শূন্য হলে push; ahead শূন্য হলে pull --ff-only; নাহলে pull --rebase।
প্রথম লাইনে q। পরের q লাইনে local_only remote_only related।
Write your solution, test it against custom input, then submit for a real verdict.
Your submissions, verdicts, drafts and contest score are tied to your account. Registration is free.
প্রতিটি প্রশ্নের জন্য এক লাইনে ahead=<l> behind=<r> action=<action>।
1 <= q <= 2000
0 <= local_only, remote_only <= 10^9
related হলো yes বা no।
4 0 0 yes 3 0 yes 0 2 yes 2 3 yes
ahead=0 behind=0 action=up-to-date ahead=3 behind=0 action=push ahead=0 behind=2 action=pull --ff-only ahead=2 behind=3 action=pull --rebase
2 1 1 no 4 0 no
ahead=1 behind=1 action=diverged ahead=4 behind=0 action=diverged