Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
How many Squares in Rectangle
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
import java.util.Scanner ; class Rextester { static final int WIDTH = 543 ; static final int HEIGHT = 130 ; public static void main( String args[] ) { Scanner in = new Scanner( System.in ) ; int a = in.nextInt() ; int n = 0 ; if ( ( a <= HEIGHT ) && ( a <= WIDTH ) ) n = ( HEIGHT / a ) * ( WIDTH / a ) ; System.out.println( n ) ; } }
130
[
-
]
Show input
Compilation time: 0.94 sec, absolute running time: 0.23 sec, cpu time: 0.19 sec, memory peak: 20 Mb, absolute service time: 1,18 sec
edit mode
|
history
|
discussion
4