結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2017-04-06 21:11:51 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 626 bytes |
| コンパイル時間 | 2,272 ms |
| コンパイル使用メモリ | 109,616 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-07-17 21:35:59 |
| 合計ジャッジ時間 | 2,981 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace yukikoda
{
class Program
{
static void Main(string[] args)
{
var ss = Console.ReadLine();
int l = 0;
int r = 0;
if (!ss[0].Equals('#'))
{
for (int i = 0; !ss[i + 1].Equals('#'); i++)
{
if (ss[i].Equals('*'))
{
if (ss[i + 1].Equals(')')) l++;
else r++;
}
}
}
Console.WriteLine("{0} {1}", l.ToString(), r.ToString());
}
}
}
No