钱币兑换问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7270 Accepted Submission(s): 4272 Problem Description 在一个国家仅有1分,2分,3分硬币,
题目链接:HDU 1284 钱币兑换问题 钱币兑换问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5467 Accepted Submission(s): 3123 Problem Description
钱币兑换问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4080 Accepted Submission(s): 2309 Problem Description 在一个国家仅有1分,2分,3分硬币,将钱N
钱币兑换问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8239 Accepted Submission(s): 4927 Problem Description 在一个国家仅有1分,2分,3分硬币,将钱N
传送门 A. New Year and Naming 题意:有两个集合,分别是含有n个元素的s集合与含有m个元素的t集合,第x年的名字有s集合的第x%n(x%n=0是即为第n个元素)个元素与t集合的第x%m(x%m=0时同上)个元素的拼接。 思路:开两个二维数组分别存s集合与t集合,分别找到第x%n和第x%某个元素一起输出就好。 AC代码: #include<bits/stdc++.h>