mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-14 10:18:15 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace problem_691A
|
||||
{
|
||||
class problem_691A
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.ReadLine();
|
||||
string s = Console.ReadLine();
|
||||
if ((s.IndexOf('0') == s.LastIndexOf('0') && s.Contains("0") && s.Contains("1")) || s == "1")
|
||||
{
|
||||
Console.Write("YES");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Write("NO");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user