Faulty problem
Submit solution
Points:
4 (partial)
Time limit:
1.0s
JAVA11
2.0s
Java 8
2.0s
Pypy 3
2.0s
Memory limit:
98M
JAVA11
977M
Java 8
977M
Pypy 3
977M
Author:
Problem types
Allowed languages
Ada, Assembly, Awk, C, C++, C11, CLANG, CLANGX, Classical, COBOL, Coffee, CSC, D lang, DART, F95, FORTH, Fortrn, GAS32, GO, Haskell, Itercal, Java, kotlin, LEAN, LISP, LUA, MONOVB, Nasm, OCAML, Pascal, Perl, php, PIKE, prolog, Pypy, Python, Ruby 2, RUST, Scala, SCM, SED, SWIFT, TCL, TUR, V8JS, VB, ZIG
A nonnegative integer is considered adjacently distinct if all of its adjacent digits are different.
For example:
Given two (very large) nonnegative integers
Input
The first line contains digits of intger
The second line contains digits of integer
Output
The amount of adjacently distinct integers in range
Constraint
Example
Input:
Copy
0 20
Output:
Copy
20
Comments
Output ví dụ sai r ad ơi