結果
| 問題 | No.358 も~っと!門松列 |
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2024-12-19 17:06:47 |
| 言語 | Nim (2.2.12 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 309µs | |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 4,604 ms |
| コンパイル使用メモリ | 71,960 KB |
| 実行使用メモリ | 9,824 KB |
| 最終ジャッジ日時 | 2026-10-05 00:01:30 |
| 合計ジャッジ時間 | 6,556 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import sequtils, strutils, sugar
const
inf = "INF"
proc isKadomatsu(xs: seq[int]): bool =
let
x = xs[0]
y = xs[1]
z = xs[2]
if x == z: return false
if x < y and y > z: return true
if x > y and y < z: return true
false
let
a = stdin.readLine.split.map parseInt
if a.isKadomatsu:
echo inf
quit()
let
list = newSeq.collect:
for i in 3 .. a.max:
if a.mapIt(it mod i).isKadomatsu: i
echo list.len
kou_kkk