Login
Register
QOJ.ac
QOJ
QOJ
Contests
Category
Problems
Submissions
Hack!
Blogs
Time Limit: 2.0 s
Memory Limit: 1024 MB
Hackable ✓
[
+2
]
# 7798. Colorful Village
Statistics
Statement
Submit
Custom Test
Attachments
The problem was used in the following contest:
The 2023 ICPC Northwestern Russia Regional Contest
The 2023 ICPC Armenia Regional Contest
The 2023 ICPC Azerbaijan Regional Contest
The 2023 ICPC Kazakhstan Regional Contest
The 2023 ICPC Taurida Regional Contest
The 2023 ICPC Ural Regional Contest
Source code:answer
Language
C 99
C 11
C++ 98
C++ 11
C++ 14
C++ 17
C++ 20
C++ 23
C++ 26
D
Go
Haskell
Java 8
Java 11
Java 17
Java 21
Kotlin
Pascal
Python 3
Rust
Upload by editor
Upload from local
use advanced editor
Browse
Submit
Source code:answer
Language
C 99
C 11
C++ 98
C++ 11
C++ 14
C++ 17
C++ 20
C++ 23
C++ 26
D
Go
Haskell
Java 8
Java 11
Java 17
Java 21
Kotlin
Pascal
Python 3
Rust
Upload by editor
Upload from local
use advanced editor
Browse
Text file:input.txt
Upload by editor
Upload from local
use advanced editor
Browse
Run