Skip to content

Commit b1d122f

Browse files
committed
Remove 'defmac's
1 parent 2579231 commit b1d122f

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

examples/abc129-f.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// https://atcoder.jp/contests/abc129/tasks/abc129_f
22

3-
use defmac::defmac;
43
use derive_more::Display;
54
use ndarray::{array, Array2, LinalgScalar};
65
use num::{PrimInt, Unsigned};
@@ -13,7 +12,7 @@ use std::ops::{Add, Div, Mul, Sub};
1312

1413
fn main() {
1514
let mut input = read_to_static(io::stdin()).split_whitespace();
16-
defmac!(read => input.next().unwrap().parse().unwrap());
15+
macro_rules! read(() => (input.next().unwrap().parse().unwrap()));
1716

1817
let (l, a, b, m): (u64, u64, u64, u64) = (read!(), read!(), read!(), read!());
1918

examples/abc142-d.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// https://atcoder.jp/contests/abc142/tasks/abc142_d
22

3-
use defmac::defmac;
43
use primal::Sieve;
54

65
use std::cmp::max;
@@ -9,7 +8,7 @@ use std::io::{self, Read};
98

109
fn main() {
1110
let mut input = read_to_static(io::stdin()).split_whitespace();
12-
defmac!(read => input.next().unwrap().parse().unwrap());
11+
macro_rules! read(() => (input.next().unwrap().parse().unwrap()));
1312

1413
let (a, b): (usize, usize) = (read!(), read!());
1514

examples/abc144-d.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// https://atcoder.jp/contests/abc144/tasks/abc144_d
22

3-
use defmac::defmac;
4-
53
use std::f64::consts::PI;
64
use std::io::{self, Read};
75

86
fn main() {
97
let mut input = read_to_static(io::stdin()).split_whitespace();
10-
defmac!(read => input.next().unwrap().parse().unwrap());
8+
macro_rules! read(() => (input.next().unwrap().parse().unwrap()));
119

1210
let (a, b, x): (f64, f64, f64) = (read!(), read!(), read!());
1311

examples/atc002-b.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// https://atcoder.jp/contests/atc002/tasks/atc002_b
22

3-
use defmac::defmac;
43
use num::BigUint;
54

65
use std::io::{self, Read};
76

87
fn main() {
98
let mut input = read_to_static(io::stdin()).split_whitespace();
10-
defmac!(read => input.next().unwrap().parse().unwrap());
9+
macro_rules! read(() => (input.next().unwrap().parse().unwrap()));
1110

1211
let (n, m, p): (BigUint, BigUint, BigUint) = (read!(), read!(), read!());
1312

examples/sumitrust2019-c.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// https://atcoder.jp/contests/sumitrust2019/tasks/sumitb2019_c
22

3-
use defmac::defmac;
43
use fixedbitset::FixedBitSet;
54

65
use std::io::{self, Read};
76

87
fn main() {
98
let mut input = read_to_static(io::stdin()).split_whitespace();
10-
defmac!(read => input.next().unwrap().parse().unwrap());
9+
macro_rules! read(() => (input.next().unwrap().parse().unwrap()));
1110

1211
let x: usize = read!();
1312

test-with-generated-opts.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ meta = { using = ["whiteread"] }
9797
name = "ABC129: F - Takahashi's Basics in Education and Learning"
9898
url = "https://atcoder.jp/contests/abc129/tasks/abc129_f"
9999
matching = "Words"
100-
meta = { using = ["defmac", "derive_more", "ndarray", "num", "num-derive"] }
100+
meta = { using = ["derive_more", "ndarray", "num", "num-derive"] }
101101

102102
[examples.abc141-c]
103103
name = "ABC141: C - Attack Survival"
@@ -109,13 +109,13 @@ meta = { using = ["proconio"] }
109109
name = "ABC142: D - Disjoint Set of Common Divisors"
110110
url = "https://atcoder.jp/contests/abc142/tasks/abc142_d"
111111
matching = "Words"
112-
meta = { using = ["defmac", "num-integer", "primal"] }
112+
meta = { using = ["num-integer", "primal"] }
113113

114114
[examples.abc144-d]
115115
name = "ABC144: D - Water Bottle"
116116
url = "https://atcoder.jp/contests/abc144/tasks/abc144_d"
117117
matching = { FloatOr = { abs = 1e-6, rel = 1e-6 } }
118-
meta = { using = ["defmac", "libm"] }
118+
meta = { using = ["libm"] }
119119

120120
[examples.abc150-d]
121121
name = "ABC150: D - Semi Common Multiple"
@@ -170,10 +170,10 @@ meta = { using = ["petgraph"] }
170170
name = "ATC002: B - n^p mod m"
171171
url = "https://atcoder.jp/contests/atc002/tasks/atc002_b"
172172
matching = "Words"
173-
meta = { using = ["defmac", "num"] }
173+
meta = { using = ["num"] }
174174

175175
[examples.sumitrust2019-c]
176176
name = "Sumitomo Mitsui Trust Bank Programming Contest 2019: C - 100 to 105"
177177
url = "https://atcoder.jp/contests/sumitrust2019/tasks/sumitb2019_c"
178178
matching = "Words"
179-
meta = { using = ["defmac", "fixedbitset"] }
179+
meta = { using = ["fixedbitset"] }

0 commit comments

Comments
 (0)