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 a67dfb0

Browse files
solve-Atcoder
1 parent 635676f commit a67dfb0

File tree

7 files changed

+38
-46
lines changed

7 files changed

+38
-46
lines changed

‎.idea/workspace.xml

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

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
fscanf(STDIN, '%s', $string);
3+
fscanf(STDIN, '%d', $limit);
4+
5+
$count = strlen($string);
6+
7+
$result = 0;
8+
if ($count >= $limit) {
9+
for ($i = 0; $i < $count - $limit + 1; $i++) {
10+
$single[] = substr($string, $i, $limit);
11+
$result = count(array_unique($single));
12+
}
13+
}
14+
echo $result, "\n";

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

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

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

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

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

Whitespace-only changes.

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

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

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

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

0 commit comments

Comments
(0)

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