結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
fal_rnd
|
| 提出日時 | 2017-01-21 16:34:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 431 bytes |
| コンパイル時間 | 1,330 ms |
| コンパイル使用メモリ | 158,524 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-23 04:21:26 |
| 合計ジャッジ時間 | 1,803 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:21:47: warning: ‘misstype’ may be used uninitialized in this function [-Wmaybe-uninitialized]
21 | cout<<strsum-misstype<<' '<<misstype<<en;
| ^~
ソースコード
#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;
}
fal_rnd