結果
問題 | No.192 合成数 |
ユーザー |
![]() |
提出日時 | 2015-04-26 22:17:07 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 2,577 ms |
コンパイル使用メモリ | 65,124 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 01:52:10 |
合計ジャッジ時間 | 3,500 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, math let n = readLine(stdin).parseInt var flag = false for x in countup(n - 100, n + 100): for y in countup(2, x - 1): if y != x and x mod y == 0: echo(x) flag = true break if flag: break