A=B
评价数不足
k problem/k問題
   
奖励
收藏
已收藏
取消收藏
项目 (12)
k-1 Subtraction
创建者: カズエイ
Input: Two binary numbers, separated by a "-". Output: The result of the subtraction. Constraint: 1 <= Input number <= 31 First number > Second number as well as First number <= Second number <日本語訳> k-1 減法 入力: "-"で区切られた、2つの2進数 出力: 引き算の結果。 制約: 1 <= 入力値 <= 3...
k-2 Summation
创建者: カズエイ
Input: Two binary numbers, separated by a ",". Output: The sum of integers from First number to Second number. Constraint: 1 <= Input number <= 50 First number < Second number <日本語訳> k-2 総和 入力: ","で区切られた、2つの2進数 出力: 1つ目の値から2つ目の値までの整数の総和。 制約: 1 <= 入力値 <= 50 ...
k-3 Square Root
创建者: カズエイ
Input: A binary number. Output: The integer part of √Input. Constraint: 1 <= Input number <= 1024 <日本語訳> k-3 平方根 入力: 2進数 出力: 入力値の正の平方根における整数部分。 制約: 1 <= 入力値 <= 1024 狐...
k-4 Logarithm
创建者: カズエイ
Input: A binary number. Output: The integer part of log base 3 of Input. Constraint: 1 <= Input number <= 16384 Of the 16384 total test cases, only 1000 are input. <日本語訳> k-4 対数 入力: 2進数 出力: 3を底とする入力値の対数における整数部分。 制約: 1 <= 入力値 <= 16384 全16384のテストケースのうち1000だけ...
k-5 Fibonacci Sequence
创建者: カズエイ
Input: A binary number. Output: The Input-th fibonacci number. Constraint: 1 <= Input number <= 75 <日本語訳> k-5 フィボナッチ数列 入力: 2進数 出力: フィボナッチ数列の第「入力値」項。 制約: 1 <= 入力値 <= 75 鮭...
k-6 Greatest Common Divisor
创建者: カズエイ
Input: Two binary numbers, separated by a ",". Output: The GCD of them. Constraint: 1 <= Input number <= 31 <日本語訳> k-6 最大公約数 入力: ","で区切られた、2つの2進数 出力: 2つの入力値の最大公約数。 制約: 1 <= 入力値 <= 31 隼...
k-7 Least Common Multiple
创建者: カズエイ
Input: Two binary numbers, separated by a ",". Output: The LCM of them. Constraint: 1 <= Input number <= 31 <日本語訳> k-7 最小公倍数 入力: ","で区切られた、2つの2進数 出力: 2つの入力値の最小公倍数。 制約: 1 <= 入力値 <= 31 鼠...
k-8 Prime Factorization
创建者: カズエイ
Input: A binary number. Output: Its prime factors in ascending order, separated by "*"s. Constraint: 2 <= Input number <= 256 <日本語訳> k-8 素因数分解 入力: 2進数 出力: 入力値の素因数を昇順に並べ、それを"*"で区切ったもの。 制約: 2 <= 入力値 <= 256 鷹...
k-9 Lexicographic Order
创建者: カズエイ
Input: Two strings of "a", "b", "c" and "x", separated by a ",". Output: The string that comes before the other in the lexicographic order. Constraint: 1 <= String length <= 4 First string ≠ Second string Of the 115260 total test cases, only 10000 are inpu...
k-10 A=B by A=B
创建者: カズエイ
Input: Two strings of "a", "b" and "c", separated by a ",". Output: The output when the input is "First string" and the instruction is "Second string =" in this game. Constraint: 1 <= First string length <= 8 1 <= Second string length <= 4 Of the 1180800 t...
k-11 Decimal to Roman
创建者: カズエイ
Input: A decimal number. Output: Convert Input to Roman numerals if Input is less than 4000. Otherwise return error. Constraint: 1 <= Input number <= 10000 You may not use keywords in this level. <日本語訳> k-11 ローマ数字 1 入力: 10進数 出力: 入力値が4000より小さければローマ数字に変換する。そ...
k-12 Binary to Roman
创建者: カズエイ
Input: A binary number. Output: Convert Input to Roman numerals if Input is less than 4000. Otherwise return error. Constraint: 1 <= Input number <= 10000 You may not use keywords in this level. <日本語訳> k-12 ローマ数字 2 入力: 2進数 出力: 入力値が4000より小さければローマ数字に変換する。そうで...