結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
shimashima_k
|
| 提出日時 | 2015-04-26 15:45:58 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 310 bytes |
| 記録 | |
| コンパイル時間 | 474 ms |
| コンパイル使用メモリ | 74,556 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-26 09:12:30 |
| 合計ジャッジ時間 | 729 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:12:11: warning: 'l' may be used uninitialized [-Wmaybe-uninitialized]
12 | l += min(m, a.length() - 0.0);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:5:11: note: 'l' was declared here
5 | int n,l,o=0;
| ^
ソースコード
#include "iostream"
#include "algorithm"
using namespace std;
int main(){
int n,l,o=0;
double m;
string a;
cin>>n;
while(n--) {
cin>>m>>a;
m*=0.012;
l += min(m, a.length() - 0.0);
o += a.length();
}
cout << l << " " << o - l << endl;
return 0;
}
shimashima_k