結果
問題 |
No.656 ゴルフ
|
ユーザー |
|
提出日時 | 2018-03-28 20:48:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 13:17:42 |
合計ジャッジ時間 | 908 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&input); | ~~~~~^~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { int input, output=0; scanf("%d",&input); while( input>10 ) { output += ( input%10==0 ? 10 : input%10 ); input /= 10; } printf("%d\n",output); return 0; }