-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Move examples/wip/abc203_b.py to examples/abc203_b.py
- Loading branch information
Showing
8 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python3 | ||
# usage: $ oj generate-input 'python3 generate.py' | ||
# usage: $ oj generate-input --hack-actual=./a.out --hack-expected=./naive 'python3 generate.py' | ||
import random | ||
|
||
|
||
# generated by oj-template v4.8.1 (https://github.com/online-judge-tools/template-generator) | ||
def main(): | ||
N = random.randint(1, 9) | ||
K = random.randint(1, 9) | ||
print(N, K) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1818 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include <bits/stdc++.h> | ||
#define REP(i, n) for (int i = 0; (i) < (int)(n); ++(i)) | ||
#define REP3(i, m, n) for (int i = (m); (i) < (int)(n); ++(i)) | ||
#define REP_R(i, n) for (int i = (int)(n)-1; (i) >= 0; --(i)) | ||
#define REP3R(i, m, n) for (int i = (int)(n)-1; (i) >= (int)(m); --(i)) | ||
#define ALL(x) ::std::begin(x), ::std::end(x) | ||
using namespace std; | ||
|
||
int64_t solve(int64_t N, int64_t K) { | ||
uint64_t ans = 0; | ||
for (int i = 1; i <= N; ++i) { | ||
for (int j = 1; j <= K; ++j) { | ||
ans += 100 * i + j; | ||
} | ||
} | ||
return ans; | ||
} | ||
|
||
// generated by oj-template v4.8.1 | ||
// (https://github.com/online-judge-tools/template-generator) | ||
int main() { | ||
std::ios::sync_with_stdio(false); | ||
std::cin.tie(nullptr); | ||
int64_t N, K; | ||
std::cin >> N >> K; | ||
auto ans = solve(N, K); | ||
std::cout << ans << '\n'; | ||
return 0; | ||
} |