結果
問題 |
No.3264 岩井数
|
ユーザー |
![]() |
提出日時 | 2025-09-07 17:24:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 382 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 41,288 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-09-07 17:24:16 |
合計ジャッジ時間 | 3,455 ms |
ジャッジサーバーID (参考情報) |
judge / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:19:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | scanf("%lld", &n); | ~~~~~^~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 3264.cc: No.3264 蟯ゥ莠墓焚 - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* typedef */ using ll = long long; /* main */ int main() { ll n; scanf("%lld", &n); while (n < 1000000000) { ll t = 1; for (ll m = n; m > 0; t *= 10, m /= 10); n *= t + 1; } printf("%lld\n", n); return 0; }