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 d75f932

Browse files
solveAtcoderProblem
1 parent cdac127 commit d75f932

File tree

13 files changed

+88
-54
lines changed

13 files changed

+88
-54
lines changed

‎.idea/workspace.xml

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

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
fscanf(STDIN, '%d%d', $h, $w);
3+
4+
for ($i = 0; $i < $h; $i++) {
5+
fscanf(STDIN, '%s', $c);
6+
$array[] = $c;
7+
}
8+
9+
foreach ($array as $value) {
10+
for ($i = 0; $i < 2; $i++) {
11+
echo $value . "\n";
12+
}
13+
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
fscanf(STDIN, "%d%d", $s, $t);
3+
if ($s == 1) $s += 13;
4+
if ($t == 1) $t += 13;
5+
6+
7+
if ($s < $t) {
8+
echo "Bob";
9+
} elseif ($s == $t) {
10+
echo "Draw";
11+
} else {
12+
echo "Alice";
13+
}

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

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

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

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
fscanf(STDIN, "%d", $s);
3+
4+
$sub = floor($s / 15);
5+
echo 800 * $s - 200 * $sub;

‎Atcoder/PHP/055.ABC/B.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', $first);
3+
4+
$result = 1;
5+
for ($i = 1; $i <= $first; $i++) {
6+
$result *= $i;
7+
$result %= 1000000000 + 7;
8+
}
9+
echo $result;

‎Atcoder/PHP/056.ABC/B.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', $first, $w, $h);
3+
4+
if ($h > $w + $first) {
5+
echo $h - ($first + $w);
6+
} elseif ($w > $h) {
7+
echo $w - ($first + $h);
8+
} else {
9+
echo 0;
10+
}

‎Atcoder/PHP/057.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", $x, $y);
3+
4+
echo ($x + $y) % 24;

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

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

0 commit comments

Comments
(0)

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