相关分类: Java技术 C/C++ VB delphi
  • 洛谷 P1518 两只塔姆沃斯牛

    P1518两只塔姆沃斯牛 The Tamworth Two 简单的模拟题,代码量不大。 他们走的路线取决于障碍物,可以把边界也看成障碍物,遇到就转,枚举次,因为100 * 100 * 4,只有4个可能在一个格子里面走,上下左右,按照给定的方式枚举,如果相遇就输出,没有就输出不可相遇。 (1)...

    2018-08-26 17:15:25

  • 关于c++中的Debug以及runtime_error之segment_fault

    差不多每次编一些竞赛类的程序都会至少给我报一次runtime_error(运行时错误)。这或许也是广大OIer心中永远的痛。~_~ 本文主要讨论如何对runtime_error以及其中的segment_fault部分进行调试。本文以dev-c++5.11作为环境,由于以竞赛为主,本文不涉及指针、c++中的类等...

    2018-08-26 17:15:26

  • Cheese Aizu - 0558 (搜索题)

    Time limit8000 ms Memory limit131072 kB チーズ () 問題 今年も JOI 町のチーズ工場がチーズの生産を始め,ねずみが巣から顔を出した.JOI 町は東西南北に区画整理されていて,各区画は巣,チーズ工場,障害物,空き地のいずれかである.ねずみは巣から出発して全て...

    2018-08-21 05:28:36

  • poj-1651 multiplication puzzle(区间dp)

    Time limit1000 ms Memory limit65536 kB The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the product of t...

    2018-08-21 05:28:34

  • poj-2488 a knight's journey(搜索题)

    Time limit1000 ms Memory limit65536 kB Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is two squares in one direction...

    2018-08-21 05:28:32

  • linux下条件变量使用笔记

    本次笔记记录两个问题: 1,条件变量在使用时会有信号丢失现象;(使用g_nums记录信号,防止信号丢失) 2,条件变量的wait内部锁操作会在惊群现象的时候访问不可用资源,存在潜在的风险;(wait后再次对可用资源进行判断,防止操作不可用资源情况的发生) 在例子代码中...

    2018-08-21 05:28:30

  • hdu-2544 最短路(最短路)

    Time limit1000 ms Memory limit32768 kB 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input输...

    2018-08-21 05:28:28

  • WINDOWS程序编程培训

    本次培训初衷: 1.感谢网友们对我一直的支持和信任。 2.之前一直有很多网友问我怎么不开培训,想跟我学学程序编程和程序逆向之类的事。 3.现在时间比较充足,所以拟定如下大纲和大学一起学习下VC编程。 4.大纲考虑好几天才拟定出来,想了很多,最后按自己想法来做。网...

    2018-08-21 05:28:28

  • 4 Values whose Sum is 0 POJ - 2785

    4 Values whose Sum is 0 Time Limit: 15000MS Memory Limit: 228000K Total Submissions: 29243 Accepted: 8887 Case Time Limit: 5000MS Description The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how ma...

    2018-08-21 05:28:26

  • hdu-1338 game predictions(贪心题)

    Suppose there are M people, including you, playing a special card game. At the beginning, each player receives N cards. The pip of a card is a positive integer which is at most N*M. And there are no two cards with the same pip. During a round, each...

    2018-08-21 05:28:25

2