-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f69a2f9
commit aa61d5b
Showing
13 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
|
||
|
||
<title>シェル芸オンラインジャッジ / SHELLGEI ONLINE JUDGE</title> | ||
<link rel="icon" href="https://shellgei-online-judge.com/favicon.jpg?version=1106"> | ||
<link rel="stylesheet" href="https://shellgei-online-judge.com/style.css?version=1106"> | ||
<link rel="icon" href="https://shellgei-online-judge.com/favicon.jpg?version=1107"> | ||
<link rel="stylesheet" href="https://shellgei-online-judge.com/style.css?version=1107"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap" rel="stylesheet"> | ||
|
@@ -55,8 +55,8 @@ <h1 class="heading-028" data-label="SHELLGEI ONLINE JUDGE">Shell one-liner playg | |
<h2>INFORMATION</h2> | ||
<h3>LAST UPDATED</h3> | ||
<ul> | ||
<li>- date: 2025/01/02</li> | ||
<li>- version: 1.1.1</li> | ||
<li>- date: 2025/01/04</li> | ||
<li>- version: 1.1.2</li> | ||
</ul> | ||
|
||
<h3>NEWS</h3> | ||
|
@@ -130,6 +130,7 @@ <h3>How to play</h3> | |
<details> | ||
<summary>2025</summary> | ||
<ul> | ||
<li>- 01/04: GENERAL-48追加</li> | ||
<li>- 01/02: サーバメンテナンス、問題追加</li> | ||
</ul> | ||
</details> | ||
|
@@ -368,6 +369,8 @@ <h3>Answer</h3> | |
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | awk '{for(i=0;i<$1;i++){for(j=0;j<$1;j++){if(i==j){printf("1")}else{printf("0")}}printf("\n")}}'</code></pre></div> | ||
<p>47</p> | ||
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | sed "s/ /\n/g" | grep -E "[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+"</code></pre></div> | ||
<p>48</p> | ||
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | tr -d '\n' | sed 's/\([a-z]\)/\1\n/g' | uniq -c | awk '{print $2,$1}' | tr -d ' ' | tr -d '\n'</code></pre></div> | ||
</details> | ||
</details> | ||
|
||
|
@@ -543,6 +546,7 @@ <h3 id="generalProblem">General</h3> | |
<option value="GENERAL-00000045">45 : Pattern 3</option> | ||
<option value="GENERAL-00000046">46 : Create Identity Matrix</option> | ||
<option value="GENERAL-00000047">47 : IP address extraction</option> | ||
<option value="GENERAL-00000048">48 : String compression</option> | ||
</select> | ||
</label> | ||
<p></p> | ||
|
@@ -721,7 +725,7 @@ <h3>Executed Shell-gei</h3> | |
<script> | ||
var is_jp = false; | ||
</script> | ||
<script src="https://shellgei-online-judge.com/index.js?version=1106"></script> | ||
<script src="https://shellgei-online-judge.com/index.js?version=1107"></script> | ||
</div> <!-- alldiv --> | ||
<h1 class="heading-028-2" data-label="">GitHub - <a href="https://github.com/YusukeKato/ShellgeiOnlineJudge/discussions" class="white-link">SHELLGEI ONLINE JUDGE Discussions</a><br>© 2023 YusukeKato All rights reserved.</h1> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
|
||
|
||
<title>シェル芸オンラインジャッジ / SHELLGEI ONLINE JUDGE</title> | ||
<link rel="icon" href="https://shellgei-online-judge.com/favicon.jpg?version=1106"> | ||
<link rel="stylesheet" href="https://shellgei-online-judge.com/style.css?version=1106"> | ||
<link rel="icon" href="https://shellgei-online-judge.com/favicon.jpg?version=1107"> | ||
<link rel="stylesheet" href="https://shellgei-online-judge.com/style.css?version=1107"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap" rel="stylesheet"> | ||
|
@@ -55,8 +55,8 @@ <h1 class="heading-028" data-label="SHELLGEI ONLINE JUDGE">シェル・ワンラ | |
<h2>概要</h2> | ||
<h3>最終更新日</h3> | ||
<ul> | ||
<li>- date: 2025/01/02</li> | ||
<li>- version: 1.1.1</li> | ||
<li>- date: 2025/01/04</li> | ||
<li>- version: 1.1.2</li> | ||
</ul> | ||
|
||
<h3>お知らせ</h3> | ||
|
@@ -130,6 +130,7 @@ <h3>遊び方</h3> | |
<details> | ||
<summary>2025</summary> | ||
<ul> | ||
<li>- 01/04: GENERAL-48追加</li> | ||
<li>- 01/02: サーバメンテナンス、問題追加</li> | ||
</ul> | ||
</details> | ||
|
@@ -368,6 +369,8 @@ <h3>回答例</h3> | |
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | awk '{for(i=0;i<$1;i++){for(j=0;j<$1;j++){if(i==j){printf("1")}else{printf("0")}}printf("\n")}}'</code></pre></div> | ||
<p>47</p> | ||
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | sed "s/ /\n/g" | grep -E "[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+"</code></pre></div> | ||
<p>48</p> | ||
<div class="codeClass"><pre><code class="mono-font2">cat input.txt | tr -d '\n' | sed 's/\([a-z]\)/\1\n/g' | uniq -c | awk '{print $2,$1}' | tr -d ' ' | tr -d '\n'</code></pre></div> | ||
</details> | ||
</details> | ||
|
||
|
@@ -543,6 +546,7 @@ <h3 id="generalProblem">通常問題</h3> | |
<option value="GENERAL-00000045">45 : 模様の描画3</option> | ||
<option value="GENERAL-00000046">46 : 単位行列の生成</option> | ||
<option value="GENERAL-00000047">47 : IPアドレスの抽出</option> | ||
<option value="GENERAL-00000048">48 : 文字列の圧縮</option> | ||
</select> | ||
</label> | ||
<p></p> | ||
|
@@ -721,7 +725,7 @@ <h3>実行したシェル芸</h3> | |
<script> | ||
var is_jp = true; | ||
</script> | ||
<script src="https://shellgei-online-judge.com/index.js?version=1106"></script> | ||
<script src="https://shellgei-online-judge.com/index.js?version=1107"></script> | ||
</div> <!-- alldiv --> | ||
<h1 class="heading-028-2" data-label="">GitHub - <a href="https://github.com/YusukeKato/ShellgeiOnlineJudge/discussions" class="white-link">SHELLGEI ONLINE JUDGE Discussions</a><br>© 2023 YusukeKato All rights reserved.</h1> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cat input.txt | tr -d '\n' | sed 's/\([a-z]\)/\1\n/g' | uniq -c | awk '{print $2,$1}' | tr -d ' ' | tr -d '\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
aaabbcccccdeeeefghhiijjjkkkkkk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a3b2c5d1e4f1g1h2i2j3k6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Replace consecutive identical characters in the string with their counts. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
文字列の中で連続している文字を個数に置き換えてください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
47 | ||
48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters