Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67729f5

Browse files
solveAtcoderProblem
1 parent 3ad0c31 commit 67729f5

File tree

22 files changed

+137
-119
lines changed

22 files changed

+137
-119
lines changed

‎.idea/workspace.xml

Lines changed: 24 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Atcoder/PHP/071.ABC/A.blade.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎Atcoder/PHP/071.ABC/A.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
fscanf(STDIN, "%d%d%d", $kes, $mori, $yama);
3+
4+
if (abs($mori - $kes) > abs($yama - $kes)) {
5+
echo "B";
6+
} else {
7+
echo "A";
8+
}

‎Atcoder/PHP/071.ABC/B.tpl renamed to ‎Atcoder/PHP/071.ABC/B.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$evisjap = array_diff($evija, $jap);
88

99

10-
11-
if($evisjap == []){
12-
echo "None";} else {
13-
echo current($evisjap); }
10+
if ($evisjap == []) {
11+
echo "None";
12+
} else {
13+
echo current($evisjap);
14+
}

‎Atcoder/PHP/082.ABC/A.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
fscanf(STDIN, "%d%d", $a, $b);
3+
4+
echo round(($a + $b) / 2);

‎Atcoder/PHP/082.ABC/A.tpl

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎Atcoder/PHP/083.ABC/A.Libra.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎Atcoder/PHP/083.ABC/A.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
fscanf(STDIN, "%d%d%d%d", $a, $b, $c, $d);
3+
4+
if ($a + $b > $c + $d) {
5+
echo 'Left';
6+
} elseif ($a + $b < $c + $d) {
7+
echo 'Right';
8+
} else {
9+
echo 'Balanced';
10+
}

‎Atcoder/PHP/083.ABC/B.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
fscanf(STDIN, "%d%d%d", $m, $p, $q);
3+
4+
$total = 0;
5+
$array = [];
6+
for ($i = 1; $i <= $m; $i++) {
7+
$array[] = $i;
8+
}
9+
10+
$int = [];
11+
foreach ($array as $key) {
12+
$num_array = str_split($key);
13+
$num_sum = array_sum($num_array);
14+
if ($p <= $num_sum && $num_sum <= $q) {
15+
$total += $key;
16+
}
17+
}
18+
echo $total;

‎Atcoder/PHP/096.ABC/A.blade.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /