Sit sit sit 问题描述 在一个XX大学中有NN张椅子排成一排,椅子上都没有人,每张椅子都有颜色,分别为蓝色或者红色. 接下来依次来了NN个学生,标号依次为1,2,3,...,N. 对于每个学生,他会找一张还没有人坐的椅子坐下来.但是如果这张椅子满足以下三个条件他就不会去坐. 1. 这张椅子左右两边都有相邻的椅子 2. 这张椅子左右两边相邻的椅子都不是空的,也就是有人坐下了 3. 这张椅子左右两边相邻的椅子的颜色不同 如果当前的学生找不到椅子坐下,那他就会走掉. 对于当前的某个学生,他可…
Electronic Document Security Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 172 Accepted Submission(s): 94 Problem Description The Tyrell corporation uses a state-of-the-art electronic docu…
Dice Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 491 Accepted Submission(s): 290 Problem Description There are 2 special dices on the table. On each face of the dice, a distinct numbe…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using LumiSoft.Net.IMAP; using LumiSoft.Net.IMAP.Client; using Sys…