結果

問題 No.587 七対子
ユーザー toshiro_yanagi
提出日時 2018-06-15 18:43:20
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 3,476 ms
コンパイル使用メモリ 62,404 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 14:52:51
合計ジャッジ時間 4,317 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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