結果
問題 |
No.2450 99-like Number
|
ユーザー |
|
提出日時 | 2023-10-04 09:54:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 996 ms |
コンパイル使用メモリ | 68,552 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-26 14:19:55 |
合計ジャッジ時間 | 1,911 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 4 |
ソースコード
#include <iostream> #include <cmath> using namespace std; typedef unsigned long int Number; int main(void){ //input Number a; cin >> a; //calc Number n = a + 1; bool yn = true; while(n >= 10){ if(n % 10 != 0){ yn = false; break; } n /= 10; } if(n == 1){ yn = true; }else{ yn = false; } //output if(yn) cout << "Yes" << endl; else cout << "No" << endl; }