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 eb7083b

Browse files
solveAtcoderProblem
1 parent 67729f5 commit eb7083b

File tree

21 files changed

+112
-85
lines changed

21 files changed

+112
-85
lines changed

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

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

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

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
fscanf(STDIN, "%d", $x);
3+
4+
$max = 0;
5+
6+
for ($i = 0; $i < 50; $i++) {
7+
for ($j = 2; $j < 50; $j++) {
8+
if ($x >= pow($i, $j)) {
9+
$max = max($max, pow($i, $j));
10+
} else {
11+
break;
12+
}
13+
}
14+
}
15+
echo $max;
16+
?>

‎Atcoder/PHP/097.ABC/B.tpl

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
$n = trim(fgets(STDIN));
3+
4+
if ($n < 1000) {
5+
echo "ABC";
6+
} else {
7+
echo "ABD";
8+
}
9+
?>

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

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

‎Atcoder/PHP/099.ABC/B.blade.php

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

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
fscanf(STDIN, "%d%d", $mori, $yama);
3+
4+
$evis = $yama - $mori;
5+
$jap = (($evis + 1) * $evis) / 2;
6+
7+
echo $jap - $yama;

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

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

‎Atcoder/PHP/100.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", $a, $b);
3+
if ($a < 9 && $b < 9) {
4+
echo 'Yay!';
5+
} else {
6+
echo ':(';
7+
}
8+
?>

0 commit comments

Comments
(0)

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