結果

問題 No.552 十分簡単な星1の問題
ユーザー elphe
提出日時 2025-09-22 10:02:37
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 2,781 ms
コンパイル使用メモリ 278,152 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-22 10:02:44
合計ジャッジ時間 4,280 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

[[nodiscard]] static inline constexpr std::string solve(const std::string& N) noexcept
{
	if (N == "0") return N;
	else return N + '0';
}

int main()
{
	std::cin.tie(nullptr);
	std::ios::sync_with_stdio(false);
	
	std::string N;
	N.reserve(22), std::cin >> N;

	std::cout << solve(N) << '\n';
	return 0;
}
0