結果
問題 |
No.587 七対子
|
ユーザー |
|
提出日時 | 2019-09-23 03:31:35 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 2,931 ms |
コンパイル使用メモリ | 64,824 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 20:01:15 |
合計ジャッジ時間 | 3,951 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'strutils' [UnusedImport]
ソースコード
import sequtils, strutils let s: string = stdin.readline var a: array[26, int] ans: string = "Impossible" for i in 0..<s.len: a[ord(s[i]) - ord('a')].inc if a.count(2) == 6: ans = $(chr(a.find(1) + ord('a'))) echo ans