Submission #1178543
Source Code Expand
N = parse(Int, readline()) function checkprime(n) ps = round(sqrt(n)) + 1 for p in 3:n if p * p > n return 0 end if n % p == 0 return 1 break end end end if checkprime(N) == 0 println("YES") else println("NO") end
Submission Info
Submission Time | |
---|---|
Task | A - 素数、コンテスト、素数 |
User | asdfghjkl1234567 |
Language | Julia (0.5.0) |
Score | 100 |
Code Size | 320 Byte |
Status | AC |
Exec Time | 708 ms |
Memory | 168584 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt, 01_test_19.txt, 01_test_20.txt, 01_test_21.txt, 01_test_22.txt, 01_test_23.txt, 01_test_24.txt, 01_test_25.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 708 ms | 168584 KB |
00_sample_02.txt | AC | 301 ms | 109032 KB |
00_sample_03.txt | AC | 297 ms | 105612 KB |
00_sample_04.txt | AC | 296 ms | 106020 KB |
01_test_01.txt | AC | 297 ms | 106368 KB |
01_test_02.txt | AC | 297 ms | 105872 KB |
01_test_03.txt | AC | 298 ms | 109180 KB |
01_test_04.txt | AC | 299 ms | 105748 KB |
01_test_05.txt | AC | 300 ms | 106120 KB |
01_test_06.txt | AC | 299 ms | 105572 KB |
01_test_07.txt | AC | 299 ms | 109560 KB |
01_test_08.txt | AC | 298 ms | 105412 KB |
01_test_09.txt | AC | 297 ms | 107000 KB |
01_test_10.txt | AC | 296 ms | 106856 KB |
01_test_11.txt | AC | 297 ms | 109308 KB |
01_test_12.txt | AC | 296 ms | 106820 KB |
01_test_13.txt | AC | 299 ms | 105224 KB |
01_test_14.txt | AC | 299 ms | 106036 KB |
01_test_15.txt | AC | 296 ms | 106216 KB |
01_test_16.txt | AC | 296 ms | 106368 KB |
01_test_17.txt | AC | 298 ms | 107308 KB |
01_test_18.txt | AC | 298 ms | 107668 KB |
01_test_19.txt | AC | 299 ms | 106644 KB |
01_test_20.txt | AC | 297 ms | 106112 KB |
01_test_21.txt | AC | 298 ms | 109180 KB |
01_test_22.txt | AC | 297 ms | 106936 KB |
01_test_23.txt | AC | 297 ms | 105696 KB |
01_test_24.txt | AC | 298 ms | 105532 KB |
01_test_25.txt | AC | 301 ms | 106760 KB |