This file contains hidden or 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
| import Mathlib | |
| def E₆ : Matrix (Fin 6) (Fin 6) ℤ := | |
| !![ 2, 0, -1, 0, 0, 0; | |
| 0, 2, 0, -1, 0, 0; | |
| -1, 0, 2, -1, 0, 0; | |
| 0, -1, -1, 2, -1, 0; | |
| 0, 0, 0, -1, 2, -1; | |
| 0, 0, 0, 0, -1, 2] |
This file contains hidden or 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 was edited by Aristotle. | |
| Lean version: leanprover/lean4:v4.24.0 | |
| Mathlib version: f897ebcf72cd16f89ab4577d0c826cd14afaafc7 | |
| This project request had uuid: b78c420c-a6ac-4943-aaee-2bdbd23df478 | |
| The following was proved by Aristotle: | |
| - lemma idlem (g : SO n) : (@cpoly n g).roots.count 1 = n → g = 1 |
This file contains hidden or 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
| import Combine | |
| public extension Publisher where Output: Sendable, Failure == Never { | |
| func next(_: isolated (any Actor)? = #isolation) async -> Output { | |
| var scopedCancellables = Set<AnyCancellable>() | |
| return await withUnsafeContinuation { continuation in | |
| self.first().sink { value in | |
| continuation.resume(returning: value) | |
| scopedCancellables.removeAll() | |
| }.store(in: &scopedCancellables) |
This file contains hidden or 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
| //: A UIKit based Playground for presenting user interface | |
| import Combine | |
| struct ViewState { | |
| var a: Int | |
| var b: Int | |
| } | |
| class MyClass { |
This file contains hidden or 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
| x Y Z | |
| x as small as possible | |
| Y and Z same width |
This file contains hidden or 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
| ➜ deno run teoria.ts Eb7add11 | |
| [ "eb", "g", "bb", "db", "ab" ] |
This file contains hidden or 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
| func sum(a: Int?, b: Int?) -> Int? { | |
| a.flatMap({ unwrappedA in | |
| b.flatMap({ unwrappedB in | |
| .some(unwrappedA + unwrappedB) | |
| }) | |
| }) | |
| } | |
| func sum(_ a: [Int], _ b: [Int]) -> [Int] { |
This file contains hidden or 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
| class SuperClass { | |
| public var customInt: Int? { | |
| didSet { | |
| print("super") | |
| } | |
| } | |
| } | |
| class ChildClass: SuperClass { | |
| override public var customInt: Int? { |
This file contains hidden or 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
| Ariana Grande, Taylor Swift, Jonas Brothers, Katy Perry, My Chemical Romance, Beyonce, Rihanna, Lizzo, BTS, Charli Damelio, Shakira, Miley Cyrus, Selena Gomez, Nick Jonas, Demi Lovato, Billie Eilish, Justin Beiber, Joji, Arctic Monkeys, Lana Del Rey, Drake, Eminem, Maddona, Camilla Cabello, Little Mix, Shawn Mendes, Fifth Harmony, Eminem, One Direction, Adele, Avicii, Bruno Mars, Charli XCX, Britney Spears, BlackPink, Kacey Musgraves, Calvin Harris, Nicki Minaj, Cardi B, Chris Brown, Michael Jackson, Charlie Puth, Coldplay, DJ Khaled, The Chainsmokers, Doja Cat, Dua Lipa, Ed Sheeran, Lady Gaga, Ellie Goulding, Harry Styles, Zayn Mallik, Niall Horan, Loius Tomlinson, Liam Payne, Justin Timberlake, Iggy Azealea, Jay Z, Jessie, Jason Derulo, Melanie Martinez, Khalid, Kanye West, Kesha, Meghan Trainor, Macklemore, Pink, Pitbull, Post Malone, Rita Ora, Sia, Sam Smith, Usher, Travis Scott, Troye Sivan, Conan Gray, The Weekend, The Vamps, Zedd, 5SOS, Mxmtoon. |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from collections import deque | |
| T = int(input()) | |
| def ans(maze): | |
| N = len(maze) | |
| M = len(maze[0]) |
NewerOlder