Skip to content

Commit acb3091

Browse files
committed
Add commented out code to make proconio removable
1 parent af6e1a7 commit acb3091

File tree

3 files changed

+73
-7
lines changed

3 files changed

+73
-7
lines changed

examples/abc120-d.rs

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
// https://atcoder.jp/contests/abc120/tasks/abc120_d
22

3-
use proconio::marker::Usize1;
4-
use proconio::{fastout, input};
53
use union_find::{QuickFindUf, UnionBySize, UnionFind as _};
64

7-
#[fastout]
5+
#[proconio::fastout]
86
fn main() {
7+
// use std::io::{self, Read as _};
8+
//
9+
// let mut input = "".to_owned();
10+
// io::stdin().read_to_string(&mut input).unwrap();
11+
// let mut input = input.split_whitespace();
12+
// macro_rules! read {
13+
// ([$t:tt; $n:expr]) => {
14+
// (0..$n).map(|_| read!($t)).collect::<Vec<_>>()
15+
// };
16+
// (($($t:tt),+)) => {
17+
// ($(read!($t)),*)
18+
// };
19+
// (_1based) => {
20+
// read!(usize) - 1
21+
// };
22+
// (_bytes) => {
23+
// read!(String).into_bytes()
24+
// };
25+
// ($ty:ty) => {
26+
// input.next().unwrap().parse::<$ty>().unwrap()
27+
// };
28+
// }
29+
//
30+
// let (n, m) = (read!((usize, usize)));
31+
// let abs = read!([(_1based, _1based); m]);
32+
33+
use proconio::input;
34+
use proconio::marker::Usize1;
35+
936
input! {
1037
n: usize,
1138
m: usize,

examples/arc065-c.rs

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
// https://atcoder.jp/contests/arc065/tasks/arc065_a
22

33
use lazy_static::lazy_static;
4-
use proconio::input;
5-
use proconio::marker::Bytes;
64
use regex::bytes::Regex;
75

6+
#[proconio::fastout]
87
fn main() {
8+
// use std::io::{self, Read as _};
9+
//
10+
// let mut input = "".to_owned();
11+
// io::stdin().read_to_string(&mut input).unwrap();
12+
// let mut input = input.split_whitespace();
13+
// macro_rules! read {
14+
// ([$t:tt; $n:expr]) => {
15+
// (0..$n).map(|_| read!($t)).collect::<Vec<_>>()
16+
// };
17+
// (($($t:tt),+)) => {
18+
// ($(read!($t)),*)
19+
// };
20+
// (_1based) => {
21+
// read!(usize) - 1
22+
// };
23+
// (_bytes) => {
24+
// read!(String).into_bytes()
25+
// };
26+
// ($ty:ty) => {
27+
// input.next().unwrap().parse::<$ty>().unwrap()
28+
// };
29+
// }
30+
//
31+
// let s = read!(_bytes);
32+
33+
use proconio::input;
34+
use proconio::marker::Bytes;
35+
936
input! {
1037
s: Bytes,
1138
}

examples/practice-a.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
// https://atcoder.jp/contests/practice/tasks/practice_1
22

3-
use proconio::input;
4-
3+
#[proconio::fastout]
54
fn main() {
5+
// use defmac::defmac;
6+
//
7+
// use std::io::{self, Read as _};
8+
//
9+
// let mut input = "".to_owned();
10+
// io::stdin().read_to_string(&mut input).unwrap();
11+
// let mut input = input.split_whitespace();
12+
// defmac!(read => input.next().unwrap().parse().unwrap());
13+
//
14+
// let (a, b, c, s): (u32, u32, u32, String) = (read!(), read!(), read!(), read!());
15+
16+
use proconio::input;
17+
618
input! {
719
a: u32,
820
b: u32,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy