結果

問題 No.3019 YNeos
コンテスト
ユーザー kou_kkk
提出日時 2026-04-08 12:38:20
言語 Nim
(2.2.10 + ACL)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 161µs
コード長 268 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,699 ms
コンパイル使用メモリ 67,664 KB
実行使用メモリ 9,792 KB
最終ジャッジ日時 2026-08-31 10:54:19
合計ジャッジ時間 4,625 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

func f(x, y: string): string =
  result = ""
  let
    lx = x.len
    ly = y.len
  for i in 0 ..< ly:
    result &= x[i]
    result &= y[i]
  if lx > ly:
    result &= x[^1]

let
  x, y = stdin.readLine
  l = x.len - y.len

echo:
  case l
  of 0, 1: f x, y
  else: "?"
0