結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2017-07-13 22:46:19 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 358 ms |
コンパイル使用メモリ | 22,656 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-07 18:33:08 |
合計ジャッジ時間 | 1,292 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 20 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:13:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%d",&n); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> #include <math.h> #include<string.h> int main(){ char s[100]; int i; int x; int j; int n; long temp; scanf("%d",&n); do{ printf("%d",n/7); printf("%d",n%7); n/=7; }while(n/7!=0); printf("\n"); return 0; }