摘要:
One of the programming paradigm in parallel processing is the producer/consumer paradigm that can be implemented using a system with a "manager" proce 阅读全文
摘要:
Pascal University, one of the oldest in the country, needs to renovate its Library Building, because after all these centuries the building started to 阅读全文
摘要:
Given the input 22, the following sequence of numbers will be printed 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 It is conjectured that the algorithm 阅读全文
摘要:
In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus 阅读全文
摘要:
这道题不怎么难,在每计算一次路程后,需要将这次输入的时间保存起来,下一次计算的时候,输入的时间需要减去上次保存的时间。 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int i;//用于循环 6 int n; 7 int s,t,sum;//速度,时间,总 阅读全文
摘要:
Write a program to read four lines of upper case (i.e., all CAPITAL LETTERS) text input (no more than 72 characters per line) from the input file and 阅读全文
摘要:
Problem A: Good evening, contestants. If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, 阅读全文