結果
問題 |
No.499 7進数変換
|
ユーザー |
|
提出日時 | 2020-04-03 01:50:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 23,040 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 16:41:54 |
合計ジャッジ時間 | 1,127 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&N); | ~~~~~^~~~~~~~~
ソースコード
#include <cstdio> int main(){ int N,A[18]={0},p=0; scanf("%d",&N); while(N>0){ A[p++]=N%7;N/=7; } while(p>0)printf("%d",A[--p]); printf("\n"); return 0; }