結果
問題 |
No.548 国士無双
|
ユーザー |
![]() |
提出日時 | 2018-06-14 22:05:16 |
言語 | Nim (2.2.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 2,965 ms |
コンパイル使用メモリ | 63,168 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 14:30:37 |
合計ジャッジ時間 | 3,769 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 1 |
ソースコード
import tables proc impossible = echo "Impossible" quit() let S = stdin.readLine var dic = initCountTable[char]() for s in S: dic.inc s if dic.largest.val >= 3: impossible() for k, v in dic: if k notin ('a' .. 'm'): impossible() for s in ('a' .. 'm'): var dic2 = dic dic2.inc s if dic2.len >= 13: echo s