結果
| 問題 |
No.1915 Addition
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-01 12:03:38 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 163 bytes |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 27,264 KB |
| 最終ジャッジ日時 | 2025-01-29 01:15:42 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
ソースコード
#include<cstdio>
int main(){
int N;
scanf("%d", &N);
long long M = N;
while(N){
N /= 10;
M *= 10;
}
printf("%lld\n", M);
}