結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-29 16:12:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 458 ms |
| コンパイル使用メモリ | 56,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 05:35:16 |
| 合計ジャッジ時間 | 1,184 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#include <cstdio>
#include <string>
#include <algorithm>
char buf [102];
int main() {
scanf("%s", buf); std::string s = buf;
printf("%d\n", std::all_of(++s.begin(), s.end(), [](const char &c){ return c == '3'; }) ? int(s.length() - 1) : -1);
}