摘要:
题目描述 Given is an N×N matrix C whose elements are non-negative integers. Determine whether there is a pair of sequences of non-negative integers A1,A2, 阅读全文
摘要:
题目描述 N students took a test with M questions with two choices: 0 and 1. You are given N strings of length M each: S1,S2,…,SN. The k-th character of Si 阅读全文
摘要:
The cows are in a particularly mischievous mood today! All Farmer John wants to do is take a photograph of the cows standing in a line, but they keep 阅读全文
摘要:
题目描述 Let S be a set composed of all integers from 1 through N. f is a function from S to S. You are given the values f(1),f(2),⋯,f(N) as f1,f2,⋯,fN. F 阅读全文
摘要:
题目描述 Bessie the cow is getting bored of the milk production industry, and wants to switch to an exciting new career in computing. To improve her codin 阅读全文
摘要:
问题: 一天,小 D 决定买一些糖果。他决定在两家不同的商店中买糖果,来体验更多的口味。 在每家商店中都有 n 颗糖果,每颗糖果都有一个权值:愉悦度,代表小 D觉得这种糖果有多好吃。其中,第一家商店中的第 i 颗糖果的愉悦度为 Ai,而第二家商店中的第 i 颗糖果的愉悦度为 Bi。 在每家商店买的糖 阅读全文