結果
問題 |
No.552 十分簡単な星1の問題
|
ユーザー |
|
提出日時 | 2018-04-21 23:11:25 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 226 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 05:29:27 |
合計ジャッジ時間 | 1,288 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 47 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char n[32]; scanf("%s", n); if (strlen(n) != 1 || n[0] != '0') { int a = strlen(n); n[a] = '0'; n[a + 1] = '\0'; } printf("%s", n); return 0; }