1. 程式人生 > >“浪潮杯”山東省第八屆ACM大學生程式設計競賽 J

“浪潮杯”山東省第八屆ACM大學生程式設計競賽 J

sell goods whose price with order as -1, 5, 6, 6, the total benefit would be -1*1 + 5*2 + 6*3 + 6*4 = 51.

01 #include <iostream>
02 #include<string.h>
03 #include<string>
04 #include<algorithm>
05 #include<stdio.h>
06 #include<cmath>
07 #include<vector>
08 using namespace std;
09 int a[1005],b[1005];
10 vector<int>v;
11 int main()
12 {
13 int i,j,k;
14 int n;

相關推薦

浪潮山東省ACM大學生程式設計競賽 J

sell goods whose price with order as -1, 5, 6, 6, the total benefit would be -1*1 + 5*2 + 6*3 + 6*4 = 51. 01 #include <iostream>

浪潮山東省ACM大學生程式設計競賽I

Fascinated with the computer games, Gabriel even forgets to study. Now she needs to finish her homework, and there is an easy problem: f(n)= She is requir

2015年山東省ACM大學生程式設計競賽-B-Lowest Unique Price

Link: http://www.sdutacm.org/sdutoj/problem.php?action=showproblem&problemid=3252 Lowest Unique Price Time Limit: 1000ms

SDUT 3258 Square Number(2015年山東省ACM大學生程式設計競賽)

Square Number Time Limit: 1000ms   Memory limit: 65536K  有疑問?點這裡^_^ 題目描述 In mathematics,

山東省ACM大學生程式設計競賽 總結

很惋惜的一場比賽,比賽前我想了很多個結局,可能是銀牌中等,銀牌末尾,要是運氣好的可能能混一個金牌回來。。但是銀首這個真的是超乎我意料之外。。。 開始比賽的不久我就看到了K題,一個作為簽到題的存在,開始習慣性的先敲輸入輸出。寫完輸入輸出之後感覺沒有比較好寫的思路

Fruit Ninja II(山東省ACM大學生程式設計競賽

Have you ever played a popular game named "Fruit Ninja"? Fruit Ninja (known as Fruit Ninja HD on the iPad and Fruit Ninja THD for Nvidia Tegra 2 based A

山東省ACM大學生程式設計競賽 Fruit Ninja I(01揹包)

01揹包 加上vector的運用,貪心sort排序 #include <stdio.h> #include <vector> #include <string.h>

福建省大學生程式設計競賽-FZU 2280 HASH處理+暴力搜尋

題目:Problem 2280 Magic  Problem Description Kim is a magician, he can use n kinds of magic, number from 1 to n. We use string Si to describe m

福建省大學生程式設計競賽-FZU 2277 DFS +線段樹+讀入掛

FZU 2277  Problem 2277 Change Accept: 245    Submit: 1186 Time Limit: 2000 mSec    Memory Limit : 262

ACM趣味程式設計競賽四場(正式賽)A B C

Yitong_Qin and Xiaoyu_Chen are playing a game.There are $N$ stones placed on the ground,forming a sequence. Thr stones are labeled from 1 to N. Yitong_Qin

2017河南省ACM大學生程式設計競賽總結

河南第十屆大學生程式設計競賽總結             比賽過程隊友部落格有記錄:http://blog.csdn.net/dreamNYC/article/details/71417450             主要就總結下這次比賽的感受:                     我們隊雖然和

ACM趣味程式設計競賽三場(正式賽)官方題解

Source:LinPC 題解:首先預處理統計a-z字元的數量,根據漸變字串的定義,由於總字元數較小,所以可以列舉漸變字串的起點,然後找到由該起點起始的最大漸變字串,然後從統計的字元中刪除所用字元,如此迴圈操作至剩餘字元數為0即可 題解: 易得,只要最長的那條

電子科技大學ACM趣味程式設計競賽第二場題解

A陰陽師?這遊戲沒有ssr! 題解: ans = sigma(1 - (1 - Pi/100)^ 2); 標程: #include <stdio.h> #include <stdlib.h> int main() {     int N,p;    

福建省大學生程式設計競賽-重現賽(感謝承辦方廈門理工學院)

Pro.A Frog fzu2272 雞兔同籠 #include<stdio.h> int main() { int t,a,b; scanf("%d",&am

山東省ACM省賽遊記

cme 哲學 同時 n) 9.png 貪心 zoj 計算機 結果 Day 1: 淩晨,來了幾分興致,和隊友在VJudge上開了一把zoj月賽,WA一發悶一口拿鐵,一瓶拿鐵 不一會就被喝完了!好氣啊!遂開始愉快地打遊戲,打著打著,woc,居然3點半了,小睡片 刻,咬上幾

[2012山東省ACM大學生程序設計競賽]——Mine Number

== memory cat chan get iostream sts 設計 target Mine Number 題目:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&proble

山東省ACM題(部分賽題整理)

118 / 221 53.39% “浪潮杯”山東省第八屆ACM大學生程式設計競賽(感謝青島科技大學) 34 / 73 46.58% “浪潮杯”山東省第

2017-山東省ACM省賽

     從第一次的懵懂,第二次的遺憾,到今年的首銀,這已經是第三次省賽之旅了_(:з」∠)_,第一次打星星,第二次錯失銀牌,這次感覺像是補回了上次銀牌的樣子?     時間回溯到幾天前,第一天熱

山東省ACM省賽 J 題(company)

Problem Description There are n kinds of goods in the company, with each of them has a inventory of  and direct unit benefit . Now you fi

2017年山東省acm省賽總結

        作為一個即將退役的大三隊員,這屆省賽對我來說就是最後一次比賽了,同時也是最重要的一次比賽。在去年的省賽中,我們隊發揮的不理想,沒拿到獎牌,因此今年就是最後的機會,我們隊在這一年中也準備了很多,其中也有過放棄,失望等時期,不過好在最後都堅持下來了。其中對我來說