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 fc276ec

Browse files
solve_Atcoder
1 parent dbdbaf0 commit fc276ec

File tree

7 files changed

+50
-9
lines changed

7 files changed

+50
-9
lines changed

‎.idea/workspace.xml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Atcoder/PHP/010.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, '%s', $s);
3+
4+
echo $s . 'pp' . "\n";

‎Atcoder/PHP/010.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);
3+
$int = array_map('intval', explode("", trim(fgets(STDIN))));
4+
5+
$petal = 0;
6+
7+
for ($i = 0; $i < $d; $i++) {
8+
if ($int[$i] === 2 || $int[$i] === 4 || $int[$i] === 8) {
9+
$petal += 1;
10+
} elseif ($int[$i] === 5) {
11+
$petal += 2;
12+
} elseif ($int[$i] === 6) {
13+
$petal += 3;
14+
} else {
15+
$petal += 0;
16+
}
17+
}
18+
echo $petal . "\n";

‎Atcoder/PHP/012.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, '%s%s', $a, $b);
3+
4+
echo $b . '' . $a . "\n";

‎Atcoder/PHP/012.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', $time);
3+
4+
$h = $time / 3600;
5+
$m = ($time % 3600) / 60;
6+
$s = ($time % 3600) % 60;
7+
8+
9+
echo date("H:i:s", mktime($h, $m, $s)) . "\n";

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

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

‎Atcoder/PHP/104.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", $a);
3+
if ($a < 1200) {
4+
echo 'ABC';
5+
} elseif ($a < 2800) {
6+
echo 'ARC';
7+
} else {
8+
echo 'AGC';
9+
}
10+

0 commit comments

Comments
(0)

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