結果

問題 No.495 (^^*) Easy
ユーザー kotatsugamekotatsugame
提出日時 2017-03-24 22:23:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 493 ms
コンパイル使用メモリ 64,648 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-20 06:32:01
合計ジャッジ時間 1,087 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    3 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
main()
{
	string t;cin>>t;int cnt=0;
	for(int i=0;i<t.length();i++)
	{
		cnt+=t[i]=='(';
	}
	cout<<cnt<<endl;
}
0