FatMouse的奶酪
来源:互联网 发布:方媛淘宝网店叫什么名 编辑:程序博客网 时间:2024/04/27 18:08
// FatMouse的奶酪.cpp : 定义控制台应用程序的入口点。////#include "stdafx.h"#include<iostream>#include<cstdio>using namespace std;const int maxn = 1005;int num[ maxn ];//int _tmain(int argc, _TCHAR* argv[])int main(){int n, m;while( cin >> m >> n ){if( !m && !n )break;for( int i = 0; i < m; ++i )cin >> num[ i ];int ans = 0;for( int i = 0; i < m; ++i ){for( int j = i + 1; j < m; ++j ){for( int k = j + 1; k < m; ++k ){if( i != j && j != k && i != k && num[ i ] + num[ j ] + num[ k ] == n )ans++;}}}cout << ans << endl;}return 0;}
- FatMouse的奶酪
- HDU 1078 FatMouse and Cheese (老鼠吃奶酪)
- “别动我的奶酪!”
- 奶酪
- 奶酪
- “融化奶酪效应”的处理
- 广西的荔枝内蒙的奶酪
- 开源的webOS将动谁的奶酪?
- 谁动得了我的奶酪
- 汉语编程动了谁的奶酪?
- 中国互联网的奶酪有多大
- Google Chrome动了我的奶酪?
- 上网本动了谁的奶酪
- 运营成本不再是唯一的 奶酪
- 谁偷了我的奶酪
- 苹果动了谁的奶酪?
- 你永远不会有足够的奶酪
- 余额宝动了谁的奶酪?
- Try Catch 3
- Ajax笔记
- 基于XMPP协议的Android即时通信系
- HDU--杭电--1556--Color the ball--线段树
- The shared folders setting of Ubuntu in Virtualbox
- FatMouse的奶酪
- 某公司有老板Boss、雇员Employee、小时工HourlyWorker和营销人员CommWorker,设计一个程序计算他们的薪金
- [LeetCode] Spiral Matrix 螺旋输出矩阵
- System.Data - System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the r
- LeetCode 之 Count and Say
- 使用Microsoft Web Platform Installer在windows平台搭建IIS+PHP+MySQL开发环境
- 24.代理以及动态代理
- [JAVA]静态代码块及执行顺序
- MFC程序最小化托盘显示