結果
問題 |
No.791 うし数列
|
ユーザー |
![]() |
提出日時 | 2020-04-27 00:55:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 1,633 ms |
コンパイル使用メモリ | 166,008 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-19 04:30:52 |
合計ジャッジ時間 | 2,232 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int c = 0; while (N > 0) { if (N % 10 == 3) { c++; N /= 10; if (N == 1) break; } else { c = -1; break; } } cout << c << endl; }