結果

問題 No.587 七対子
コンテスト
ユーザー toshiro_yanagi
提出日時 2018-06-15 18:43:20
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 191 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,005 ms
コンパイル使用メモリ 69,764 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2026-03-20 17:41:41
合計ジャッジ時間 5,151 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import tables
var S = initCountTable[char]()

for s in stdin.readLine:
  S.inc s

if S.largest.val == 2:
  let ss = S.smallest
  if ss.val == 1:
    echo ss.key
    quit()

echo "Impossible"
0