html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--PS :
Vasya is very upset that many people on the Net mix uppercase and lowercase letters in one word. That's why he decided to invent an extension for his favorite browser that would change the letters' register in every word so that it either only consisted of lowercase letters or, vice versa, only of uppercase ones. At that as little as possible letters should be changed in the word. For example, the word HoUse must be replaced with house, and the word ViP — with VIP. If a word contains an equal number of uppercase and lowercase letters, you should replace all the letters with lowercase ones. For example, maTRIx should be replaced by matrix. Your task is to use the given method on one given word.
Input
The first line contains a word s — it consists of uppercase and lowercase Latin letters and possesses the length from 1 to 100.
Output
Print the corrected word s. If the given word s has strictly more uppercase letters, make the word written in the uppercase register, otherwise - in the lowercase one.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A Word</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="box">
<h2> Word !</h2>
<input type="text" placeholder="enter something..." class="in-1" id="inp">
<br>
<button id="btn">Convert();</button>
<p id="output">Output.cpp</p>
</div>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
.container{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box{
min-height: 280px;
width: 300px;
border: 1px solid rgb(255, 0, 89);
box-shadow: 3px 3px 5px rgba(164, 56, 94, 0.218),
-2px -2px 7px rgba(185, 19, 77, 0.28);
border-radius: 5px;
padding: 10px 25px;
text-align: center;
}
h2{
color: rgb(255, 0, 89);
font-size: 40px;
text-align: center;
margin-top: 10px;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
alert("It is basically a codeforces problem")
alert ("Pls subscribe my channel")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run