codeforce 609A - USB Flash Drives】的更多相关文章

排序水题 #include<iostream> #include<cstdlib> #include<cstdio> #include<algorithm> #include<math.h> using namespace std; int n,m; ]; int main() { scanf("%d",&n); scanf("%d",&m); ;i<n;i++) { scanf(&q…
水题 #include<cstdio> #include<cmath> #include<algorithm> using namespace std; +; int a[maxn]; int main() { int n,m; while(~scanf("%d%d",&n,&m)) { ; i<=n; i++) scanf("%d",&a[i]); sort(a+,a++n); ; ; i--) {…
A. USB Flash Drives time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Sean is trying to save a large file to a USB flash drive. He has n USB flash drives with capacities equal to a1, a2, ...…
A. USB Flash Drives 题目连接: http://www.codeforces.com/contest/609/problem/A Description Sean is trying to save a large file to a USB flash drive. He has n USB flash drives with capacities equal to a1, a2, ..., an megabytes. The file size is equal to m…
对于这题明显是用贪心算法来解决问题: 下面贴出笔者的代码: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; ]; bool cmp(int A,int B) { return A>B; } int main() { int n;scanf("%d",&n); int m;scanf("%d",&m); ;…
[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 排序,逆序.贪心选较大的就好. [代码] #include <bits/stdc++.h> #define ll long long using namespace std; const int M =1e5; int f[M+10],a[1000+10],n,m; int main() { ios::sync_with_stdio(0),cin.tie(0); #ifdef LOCAL_DEFINE freopen(&quo…
http://myeeeguides.wordpress.com/2008/11/15/winsetupfromusb-install-windows-xp-from-usb-flash-drive/ This guide will show you, how to use WinSetupFromUSB to create a bootable USB Flash Drive including all Windows source files, plus the following inst…
How to Create a Bootable UEFI USB Flash Drive for Installing Windows 7, Windows 8, or Windows 8.1 Information This tutorial will show you how to create a Windows 7 or Windows 8 or 8.1 installation bootable USB flash drive for UEFIfrom either a Window…
What does this tool do? The LPC18xx/43xx DFUSec utility is a Windows PC tool that provides support functions for LPC18xx/43xx microcontroller via USB. The tool is composed of 3 components: the Image Programmer, the LPC-Link 2 Configuration Tool, and…
Rufus Create bootable USB drives the easy way Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc. It can be especially useful for cases where: you need to create USB installation…