結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 16:57:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 1,112 ms |
| コンパイル使用メモリ | 75,332 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-25 23:12:28 |
| 合計ジャッジ時間 | 1,423 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <set>
int main(int argc, char *argv[]) {
std::set<std::pair<std::string, std::string>> s;
std::string c;
std::cin >> c;
int i = 1;
while (i < (int)c.size()) {
std::string a = c.substr(0, i), b = c.substr(i);
++i;
if (a.at(0) == '0' || b.at(0) == '0')
continue;
s.insert({a, b});
}
std::cout << s.size() << std::endl;
}