結果

問題 No.35 タイパー高橋
ユーザー fal_rndfal_rnd
提出日時 2017-01-21 16:34:12
言語 C++11
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 431 bytes
コンパイル時間 1,101 ms
コンパイル使用メモリ 144,072 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-24 19:20:11
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:21:25: warning: ‘misstype’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<strsum-misstype<<' '<<misstype<<en;
                         ^~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using  ll =          long long int;
using ull = unsigned long long int;
const char en ='\n';
const int  mod=1000000007;

int main(){
	cin.tie();
	ios::sync_with_stdio(false);

	int strsum=0,misstype,t,n;
	string s;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>t>>s;
		misstype+=max<int>(0,s.size()-t*12/1000);
		strsum+=s.size();
	}
	cout<<strsum-misstype<<' '<<misstype<<en;

	return 0;
}
0