প্রোডাক্ট টিম ঠিক করবে কোন পেমেন্ট মেথড চেকআউটে রাখা জরুরি। payments-এ প্রতি চেষ্টাই এক সারি — সফল, failed, refunded, pending সব। প্রতি method-এর চেষ্টার সংখ্যা (attempts), তার মধ্যে সফল (paid) সংখ্যা (paid_count) আর সফলতার হার শতাংশে (success_pct, এক দশমিক) বের করো — হার বেশি থেকে কম, সমান হলে মেথডের নাম অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে method, attempts, paid_count, success_pct — হার নিচের ক্রমে, সমান হলে method অনুযায়ী।
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.
ShopSphere fixture. Standard SQL (SQLite-compatible engine).
SQL samples run against the ShopSphere fixture. When a sample shows dataset setup, the judge applies it before running your query; the expected rows are TSV.
Base ShopSphere fixture (no changes)
bkash 5 4 80.0 card 4 3 75.0 cod 2 1 50.0
update payments set status='paid', paid_at='2026-10-03 11:00' where id=2;
cod 2 2 100.0 bkash 5 4 80.0 card 4 3 75.0