217-a letter and a number 内存限制:64MB 时间限制:3000ms 特判: No 通过数:4 提交数:5 难度:1 题目描述: we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26; Give you a letter x and a number y , you should output the result of y+f(x). 输入描述: On the fir…
描述we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;Give you a letter x and a number y , you should output the result of y+f(x). 输入 On the first line, contains a number T(0<T<=10000).then T lines follow, each line is a…
Problem Statement The Happy Letter game is played as follows: At the beginning, several players enter the field. Each player has a lowercase English letter on their back. The game is played in turns. In each turn, you select two players with dif…
条件 if-then-elif-then-fi if的条件部分经常使用test EXPRESSION或[ EXPRESSION ]实现,test的用法可以参见test if 条件1 #if 条件1;then then 执行语句1 elif 条件2 #elif 条件2;then then 执行语句2 else 执行语句3 fi #条件结束标识,即将if反过来 举个栗子 #!/bin/sh var="a test string" if [ '$var' = 'a test string'…
A drive is a physical block disk. For example: /dev/sda. A partition A drive can be divided into some logic block disk. These logic block disk are named partition. For example: /dev/sda1, /dev/sda2. A volume is also a logic block disk. Volume is a co…
Glyph(字形) A glyph is an element of writing: an individual mark on a written medium that contributes to the meaning of what is written. glyph是一个独立的标记,用来表达一个它之所以被写出的意思.也就是写了表示一个意思,不写表示另外一个意思. For example, in most languages written in any variety of the…
Problem Description we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, - f(Z) = 26, f(z) = -26; Give you a letter x and a number y , you should output the result of y+f(x). Input On the first line, contains a number T.then T lines follow, each line…
Problem Description we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26; Give you a letter x and a number y , you should output the result of y+f(x). Input On the first line, contains a number T.then T lines follow, each l…