Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `1234567890-=~!@#$%^&*()_+qwertyuiop[]QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:"zxcvbnm,./ZXCVBNM<>?
- "$"
- 1
- "R"
- 2
- "a"
- 3
- "?"
- 4
- "n"
- 3
- " "
- 5
- ?zh@+,4Zmid2c.Bi."0fÀÓ¸[9Ѷ¤KïLäHÉðbÀ`]ü©¬vS"16 2-CzCd3
- p(A[0].matches("[`0-9-=~!@#$%^&*()_+]")?1:A[0].replace("\n","n").matches("(?i)[asdfghjkl;':"n]")?3:A[0].matches("(?i)[zxcvbnm,.\/<>?]")?4:A[0].matches(" ")?5:2
- |+++l:"~`0123456789!@#$%^&*()_-=+"z1*l:"asdfghjkl;:'"n"rz0 1 3*l:"zxcvbnm,<.>/? "rz0 1 4 l:dz1 2
- 2+`qØÆyuiop{}[]|\1dfghjkl;:
- '1zxcvbnm,.<>?/"1 `q1 ®bUv)<0} b!1
- print(int(("~`!1@2#3$4%5^6&7*8(9)0_-+=""qwertyuiop{[}|"+"]"*11+'asdfghjkl;:"n'"'"*13+"zxcvbnm,<.>/""?"*14+" ").index(input().lower())/26)+1)
- J?<l-c".^$*+?{}[]|()"1]z14+\zrz0?qJd5?:"qwertyuiop[]|"J)2?:"asdfghjkl;':"n"J)3?:"zxcvbnm,./<>?"J)4 1
- J?<l-c".^$*+?{}[]|()"1]z14+\zrz0 # Escape input if regex metachar
- ?qJd5 # Check space
- ?:"qwertyuiop[]|"J)2 # Check second row
- ?:"asdfghjkl;':"n"J)3 # Check third row
- ?:"zxcvbnm,./<>?"J)4 # Check fourth row
- 1 # If none of these, must be on first row.
- `1234567890-=~!@#$%^&*()_+
- qwertyuiop[]{}|
- asdfghjkl;':"
- zxcvbnm,./<>?
- YDEyMzQ1Njc4OTAtPX4hQCMkJV4mKigpXysKcXdlcnR5dWlvcFtdXHt9fAphc2RmZ2hqa2w7JzoiCnp4Y3Zibm0sLi88Pj8KIA==
- grep -Fin "$1" k|tail -n3|head -c1
- grep --fixed-strings --ignore-case --line-number "$1" k|tail --lines=3|head --bytes=1
- say 1+(/<[-d=~!@#$%^&*()_+/`]>/,/<[qwertyuiop[]\{}|]>/,/<[asdfghjkl;':"n]>/,/<[zxcvbnm,./<>?]>/,' ').first: @*ARGS.lc~~*,:k
- $_=/[d~`!@#-&(-+_=-]/+/[adfghjkls"':;
- ]/i*3+/[bcnmvxz<>,.?/]/i*4+/ /*5||2
- $i=$argv[1];preg_match("%([!#-&(-+-0-9=@^-`~])|([EIO-RT-UWY[-]eio-rt-uwy{-}])|(["':-;ADF-HJ-LSadf-hj-ls])|([,.-/<>-?B-CM-NVXZb-cm-nvxz])%",$i,$m);echo array_flip($m)[$i];
- Array ( [0] => 'z', [1] => '', [2] => '', [3] => '', [4] => 'z' )
- Array ( 'z' => 4, '' => 3 )
- n=>[`qwertyuiop{}[]|\`,`asdfghjkl;:
- '`,`zxcvbnm,.<>?/"`,` `].map(x=>+(x.indexOf(n.toLowerCase())<0)).indexOf(0)+2
- #define c 2124850936,91714965
- b[]={8<<18,0,-218071008,7796<<19,c,c};f(a){return a-32?b[a>>4]>>a%16*2&3:4;}
- q_" "={;5}{"`1234567890-=~!@#$%^&*()_+qwertyuiop[]QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:" zxcvbnm,./ZXCVBNM<>? "#26/1+}?
- q e# read input
- _" "= e# decide if the input is a space
- {;5} e# if it is, push 5
- {"..."#26/1+}? e# if it isn't, push the correct row
- 1 a$="~`!1@2#3$4%5^6&7*8(9)0-_+=qQwWeErRtTyYuUiIoOpP{[}]|aaaaAsSdDfFgGhHjJkKlL:;'"#34#13"zzzzzzzZxXcCvVbBnNmM<,>.?/"+" "*26
- 2 INPUT k$: IF k$="" THEN k$=#13
- 3 ?CEIL(POS(k$,a$)/26)
- using C=System.Console;class P{static void Main(string[]a)=>C.Write("`1234567890-=~!@#$%^&*()_+qwertyuiop[]\QWERTYUIOP{}|asdfghjkl;'raASDFGHJKL:"nazxcvbnm,./zzzZXCVBNM<>?zzz ".IndexOf(a[0])/26+1);}
- using C=System.Console;
- class P{
- static void Main(string[]a)=>
- C.Write("`1234567890-=~!@#$%^&*()_+qwertyuiop[]\QWERTYUIOP{}|asdfghjkl;'raASDFGHJKL:"nazxcvbnm,./zzzZXCVBNM<>?zzz ".IndexOf(a[0])/26+1);
- }
Add Comment
Please, Sign In to add comment