Skip to content

Commit

Permalink
agc038 a
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Feb 9, 2023
1 parent 004fd8c commit 96f334d
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 20 deletions.
88 changes: 86 additions & 2 deletions agc038/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agc038/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "agc038"
version = "0.1.0"
authors = ["bouzuya <m@bouzuya.net>"]
edition = "2018"

# dependencies added to new project
[dependencies]
num = "=0.2.1"
proconio = { version = "=0.3.6", features = ["derive"] }
superslice = "=1.0.0"

Expand Down
12 changes: 5 additions & 7 deletions agc038/src/bin/a.rs
Expand Up @@ -7,15 +7,13 @@ fn main() {
a: usize,
b: usize,
};
for r in 0..h {
for c in 0..w {
for i in 0..h {
for j in 0..w {
print!(
"{}",
match (r < b, c < a) {
(true, true) => 0,
(true, false) => 1,
(false, true) => 1,
(false, false) => 0,
match (i < b, j < a) {
(true, true) | (false, false) => 0,
(true, false) | (false, true) => 1,
}
);
}
Expand Down
3 changes: 1 addition & 2 deletions agc038/src/bin/b.rs
@@ -1,5 +1,4 @@
use proconio::input;
use proconio::marker::Usize1;
use proconio::{input, marker::Usize1};

fn main() {
input! {
Expand Down
3 changes: 1 addition & 2 deletions agc038/src/bin/c.rs
@@ -1,5 +1,4 @@
use proconio::input;
use proconio::marker::Usize1;
use proconio::{input, marker::Usize1};

fn main() {
input! {
Expand Down
3 changes: 1 addition & 2 deletions agc038/src/bin/d.rs
@@ -1,5 +1,4 @@
use proconio::input;
use proconio::marker::Usize1;
use proconio::{input, marker::Usize1};

fn main() {
input! {
Expand Down
3 changes: 1 addition & 2 deletions agc038/src/bin/e.rs
@@ -1,5 +1,4 @@
use proconio::input;
use proconio::marker::Usize1;
use proconio::{input, marker::Usize1};

fn main() {
input! {
Expand Down
3 changes: 1 addition & 2 deletions agc038/src/bin/f.rs
@@ -1,5 +1,4 @@
use proconio::input;
use proconio::marker::Usize1;
use proconio::{input, marker::Usize1};

fn main() {
input! {
Expand Down

0 comments on commit 96f334d

Please sign in to comment.