Login
Register
QOJ.ac
QOJ
QOJ
Contests
Category
Problems
Submissions
Hack!
Blogs
Time Limit: 3 s
Memory Limit: 256 MB
Total points: 100
[
+8
]
# 64. Naan
Statistics
Statement
(日本語)
Submit
Custom Test
Attachments
Editorial
The problem was used in the following contest:
The 18th Japanese Olympiad in Informatics Spring Training Camp (JOISC 2018/2019) Day 1
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