Basically, for me as a newbie on Competitive Programming was difficult to find the way you are supposed to enter the input of the test cases.
That lead me to find little about how to do so, seeming that everyones supouse that you know, but yes, we don't, so here are how you can expect
input from the judge (the program that executes your script passing it one or more test cases) for all languages allowed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| ///<summary> The ReadOnly attribute for fields, allows inheritance and have its own custom drawer </summary> | |
| public class ReadOnlyAttribute : PropertyAttribute | |
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ----------------------- | |
| // Resources for the script: | |
| // https://discussions.unity.com/t/having-text-or-notes-in-the-inspector/69375/7 | |
| // https://forum.unity.com/threads/helpattribute-allows-you-to-use-helpbox-in-the-unity-inspector-window.462768/ | |
| // https://forum.unity.com/threads/add-info-text-notes-into-the-inspector.265330/ | |
| // https://discussions.unity.com/t/give-info-in-inspector/47815 | |
| // https://github.com/johnearnshaw/unity-inspector-help/blob/master/HelpAttribute.cs | |
| // https://github.com/ALanMAttano/UnityInspectorInfoTextNote/blob/master/Assets/_Scripts/Tools/Editor/InspectorNote.cs | |
| // https://docs.unity3d.com/ScriptReference/EditorGUILayout.HelpBox.html | |
| // ------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // First gist |