結果
問題 | No.552 十分簡単な星1の問題 |
ユーザー |
![]() |
提出日時 | 2019-04-09 17:51:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 409 ms |
コンパイル使用メモリ | 55,052 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 10:59:42 |
合計ジャッジ時間 | 1,678 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 47 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { char N[25]; cin >> N; if (N[0] == '0') { cout << N << endl; } else { for (int i = 1; i < 25; i++) { if (N[i] == '\0') { N[i] = (char)48; N[i + 1] = '\0'; break; } } cout << N << endl; } return 0; }