Skip to content

Commit 4963a23

Browse files
committed
⚡️ abc259
1 parent 3148b1b commit 4963a23

File tree

20 files changed

+445
-0
lines changed

20 files changed

+445
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[package]
2+
name = "abc259"
3+
version = "0.1.0"
4+
edition = "2018"
5+
6+
[package.metadata.cargo-compete.bin]
7+
abc259-a = { alias = "a", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_a" }
8+
abc259-b = { alias = "b", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_b" }
9+
abc259-c = { alias = "c", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_c" }
10+
abc259-d = { alias = "d", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_d" }
11+
abc259-e = { alias = "e", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_e" }
12+
abc259-ex = { alias = "ex", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_h" }
13+
abc259-f = { alias = "f", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_f" }
14+
abc259-g = { alias = "g", problem = "https://atcoder.jp/contests/abc259/tasks/abc259_g" }
15+
16+
[[bin]]
17+
name = "abc259-a"
18+
path = "src/bin/a.rs"
19+
20+
[[bin]]
21+
name = "abc259-b"
22+
path = "src/bin/b.rs"
23+
24+
[[bin]]
25+
name = "abc259-c"
26+
path = "src/bin/c.rs"
27+
28+
[[bin]]
29+
name = "abc259-d"
30+
path = "src/bin/d.rs"
31+
32+
[[bin]]
33+
name = "abc259-e"
34+
path = "src/bin/e.rs"
35+
36+
[[bin]]
37+
name = "abc259-ex"
38+
path = "src/bin/ex.rs"
39+
40+
[[bin]]
41+
name = "abc259-f"
42+
path = "src/bin/f.rs"
43+
44+
[[bin]]
45+
name = "abc259-g"
46+
path = "src/bin/g.rs"
47+
48+
[dependencies]
49+
num = "=0.2.1"
50+
num-bigint = "=0.2.6"
51+
num-complex = "=0.2.4"
52+
num-integer = "=0.1.42"
53+
num-iter = "=0.1.40"
54+
num-rational = "=0.2.4"
55+
num-traits = "=0.2.11"
56+
num-derive = "=0.3.0"
57+
ndarray = "=0.13.0"
58+
nalgebra = "=0.20.0"
59+
alga = "=0.9.3"
60+
libm = "=0.2.1"
61+
rand = { version = "=0.7.3", features = ["small_rng"] }
62+
getrandom = "=0.1.14"
63+
rand_chacha = "=0.2.2"
64+
rand_core = "=0.5.1"
65+
rand_hc = "=0.2.0"
66+
rand_pcg = "=0.2.1"
67+
rand_distr = "=0.2.2"
68+
petgraph = "=0.5.0"
69+
indexmap = "=1.3.2"
70+
regex = "=1.3.6"
71+
lazy_static = "=1.4.0"
72+
ordered-float = "=1.0.2"
73+
ascii = "=1.0.0"
74+
permutohedron = "=0.2.4"
75+
superslice = "=1.0.0"
76+
itertools = "=0.9.0"
77+
itertools-num = "=0.1.3"
78+
maplit = "=1.0.2"
79+
either = "=1.5.3"
80+
im-rc = "=14.3.0"
81+
fixedbitset = "=0.2.0"
82+
bitset-fixed = "=0.1.0"
83+
proconio = { version = "=0.3.6", features = ["derive"] }
84+
text_io = "=0.1.8"
85+
whiteread = "=0.5.0"
86+
rustc-hash = "=1.1.0"
87+
smallvec = "=1.2.0"
88+
89+
[dev-dependencies]

atcoder/abc/abc201-300/abc259/a.cpp

Whitespace-only changes.

atcoder/abc/abc201-300/abc259/b.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
#include <math.h>
4+
5+
int main(void){
6+
int a, b, c;
7+
scanf("%d %d %d", &a, &b, &c);
8+
9+
double x, y;
10+
x = a * cos(c * M_PI / 180.0) - b * sin(c * M_PI / 180.0);
11+
y = a * sin(c * M_PI / 180.0) + b * cos(c * M_PI / 180.0);
12+
13+
printf("%f %f\n", x, y);
14+
}

atcoder/abc/abc201-300/abc259/c.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from collections import deque
2+
s = list(input())
3+
t = list(input())
4+
5+
s = deque(s)
6+
t = deque(t)
7+
flag = True
8+
while len(t) > 0:
9+
# tの文字が連続する限り取り出す
10+
t_head = t.popleft()
11+
count_t = [t_head, 1]
12+
while len(t) > 0 and t[0] == count_t[0]:
13+
t.popleft()
14+
count_t[1] += 1
15+
16+
# sの文字がt_headに一致する限り取り出す
17+
count_s = 0
18+
while len(s) > 0 and s[0] == t_head:
19+
s.popleft()
20+
count_s += 1
21+
22+
if count_s == 0:
23+
flag = False
24+
break
25+
elif count_s == 1 and count_t[1] > 1:
26+
flag = False
27+
break
28+
elif count_s > count_t[1]:
29+
flag = False
30+
break
31+
if flag:
32+
print("Yes")
33+
else:
34+
print("No")
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
use proconio::input;
2+
3+
fn main() {
4+
input! {
5+
n: i32,
6+
m: i32,
7+
x: i32,
8+
t: i32,
9+
d: i32,
10+
}
11+
12+
let mut ans = t - (x * d);
13+
14+
for i in 1..=n {
15+
if i > m {
16+
break;
17+
}
18+
ans += d;
19+
if i == x {
20+
break;
21+
}
22+
}
23+
println!("{}", ans);
24+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
todo!();
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
todo!();
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
todo!();
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
todo!();
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
todo!();
3+
}

0 commit comments

Comments
 (0)