ログインしてください。
			
		
		
	
		公式
		
		
			
		
		
			
	
D - Substring 解説 by en_translator
This problem asks to enumerate substrings and count them without duplicates.
In order to obtain a substring, one can use substr function in C++.  In Python, it is convenient to treat Python as a list and use the slice feature.
In order to remove duplicates, it is convenient to use a data structure called set.  The editorial of ABC346-C for the last contest describes such data structures, so see also them.
				投稿日時:
				
				
				最終更新: