結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
adio_parts
|
| 提出日時 | 2017-06-04 00:13:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| コンパイル時間 | 531 ms |
| コンパイル使用メモリ | 61,356 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 04:40:05 |
| 合計ジャッジ時間 | 1,555 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 20 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <stdexcept>
using namespace std;
int main() {
string s;
vector<int> list;
cin >> s;
for(int i = 0; i < s.size(); i++){
try {
list.push_back(stoi(s.substr(i,1)));
} catch (const std::invalid_argument& e) {
}
}
for(int i = 0; i < list.size(); i++){
cout << list[i] << "\n";
}
return 0;
}
adio_parts