Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sensi
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
val1 = [52,51.08333333,50.16666667,49.25,48.33333333,47.41666667,46.5,45.58333333,44.66666667,43.75,42.83333333,41.91666667,41,40.08333333,39.16666667,38.25,37.33333333,36.41666667,35.5,34.58333333,33.66666667,32.75,31.83333333,30.91666667,30] fov = int(input("Enter your FOV: \n")) base = int(input("Enter Standard Sensitivity: \n")) def sens(argf): argf = val1[argf] s1 = (base*3)/(80/argf) print("\nADS: "+str(round(s1,0))) s2 = (base*3)/(101/argf) print("Tac: "+str(round(s2,0))) s3 = (base*3)/(136/argf) print("3x: "+str(round(s3,0))) s4 = (base*3)/(195/argf) print("4x: "+str(round(s4,0))) s5 = (base*5)/(344/argf) print("Sniper: "+str(round(s5,0))) print("Sniper (for Quickscope): "+str(round((s5+(s5/2)),0))) s6 = (base*5)/(393/argf) print("6x: "+str(round(s6,0))) print("8x: "+str(round(s6,0))) if fov==51: sens(0) elif fov==52: sens(1) elif fov==53: sens(2) elif fov==54: sens(3) elif fov==55: sens(4) elif fov==56: sens(5) elif fov==57: sens(6) elif fov==58: sens(7) elif fov==59: sens(8) elif fov==60: sens(9) elif fov==61: sens(10) elif fov==62: sens(11) elif fov==63: sens(12) elif fov==64: sens(13) elif fov==65: sens(14) elif fov==66: sens(15) elif fov==67: sens(16) elif fov==68: sens(17) elif fov==69: sens(18) elif fov==70: sens(19) elif fov==71: sens(20) elif fov==72: sens(21) elif fov==73: sens(22) elif fov==74: sens(23) elif fov==75: sens(24) else: print("Input FOV between 51 to 75")
200
[
-
]
Show input
Tempo de execução absoluto: 0,15 s, tempo de CPU: 0,02 s, pico de memória: 8 Mb, tempo de serviço absoluto: 0,22 s
edit mode
|
history
|
discussion