Three Points On A Line 时间限制 1000 ms 内存限制 65536 KB 题目描述 Given points on a 2D plane, judge whether there're three points that locate on the same line. 输入格式 The number of test cases T(1≤T≤10) appear
Single Number 时间限制 1000 ms 内存限制 65536 KB 题目描述 Given an array with N integers where all elements appear three times except for one. Find out the one which appears only once. 输入格式 Several test case
A + B Problem 时间限制 1000 ms 内存限制 65536 KB 题目描述 Calculate the sum of two given integers A and B. 输入格式 The input consists of a line with A and B. (−104≤A,B≤104). 输出格式 Output the only answer. 输入样例
题目描述 Given a pair of number (p,t) where p is a prime and t is a non-negative integer. The 'Residual Set' of any prime number p is all the integers between 1 and p-1, that is, '1 2 3 4 ... p-2 p-1'
题目描述 Given points on a 2D plane, judge whether there're three points that locate on the same line. 输入格式 The number of test cases T(1≤T≤10) appears in the first line of input. Each test case
题目描述 正义的伙伴褋祈和葬仪社的机器人Fuyuneru正在被邪恶的GHQ部队追杀。眼看着快要逃不掉了,祈就把重要的东西塞到了机器人体内,让它先跑,自己吸引火力。 假设Fuyuneru带上东西开始逃跑时所处的点为原点,朝向为正北。操纵FuyuNeru的指令有如下四种: right X: X是1-359之间的整数,Fuyuneru的前进方向顺时针转X度。 left X: X是1-359之间的