結果

問題 No.499 7進数変換
ユーザー HaijinnHaijinn
提出日時 2017-07-13 22:46:19
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 22,144 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-16 18:38:53
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 0 ms
6,940 KB
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 1 ms
6,944 KB
testcase_11 AC 0 ms
6,944 KB
testcase_12 AC 1 ms
6,940 KB
testcase_13 AC 1 ms
6,940 KB
testcase_14 AC 0 ms
6,940 KB
testcase_15 AC 1 ms
6,940 KB
testcase_16 AC 1 ms
6,944 KB
testcase_17 AC 0 ms
6,944 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#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;
	
}
0