結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
sgsw
|
| 提出日時 | 2021-08-13 21:50:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 595 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 82,844 KB |
| 実行使用メモリ | 54,052 KB |
| 最終ジャッジ日時 | 2024-10-03 21:46:31 |
| 合計ジャッジ時間 | 1,926 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 4 WA * 22 |
ソースコード
'''
Python3(PyPy3) Template for Programming-Contest.
author : sgsw
generated : 2021/08/13
when : 21:45:24
'''
import sys
def input():
return sys.stdin.readline().rstrip()
DXY = [(0, -1), (1, 0), (0, 1), (-1, 0)] # LDRU
mod = 998244353
inf = 1 << 64
def main():
s = list(input())
s = list(map(lambda x: ord(x),s))
for i in range(26):
if i + ord("a") not in s:
print(chr(ord("a") + i))
return
m = min(s)
b = s.count(m)
c = chr(m)
print(c * (b + 1))
return 0
if __name__ == "__main__":
main()
sgsw