結果
| 問題 |
No.636 硬貨の枚数2
|
| コンテスト | |
| ユーザー |
しらっ亭
|
| 提出日時 | 2017-05-22 23:13:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 672 bytes |
| コンパイル時間 | 600 ms |
| コンパイル使用メモリ | 67,976 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-19 10:26:08 |
| 合計ジャッジ時間 | 2,090 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 65 |
ソースコード
// これは入力をチェックするためだけの submit です。
// 入力が制約を満たさないとき、RE となり、制約を満たしていれば WA となります
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
int main() {
string s;
cin >> s;
int length = s.size();
assert(length >= 1);
assert(length <= 10001);
for (char c : s) {
assert(c >= '0');
assert(c <= '9');
}
assert(s[0] != '0');
if (length == 10001) {
// 10001 桁は、10^10000 のみ
assert(s[0] == '1');
for (int i = 1; i < length; i++) {
assert(s[i] == '0');
}
}
cout << -1 << endl;
return 0;
}
しらっ亭