結果
| 問題 |
No.499 7進数変換
|
| コンテスト | |
| ユーザー |
apple3cl
|
| 提出日時 | 2017-04-08 01:21:17 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 191 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 28,800 KB |
| 実行使用メモリ | 8,612 KB |
| 最終ジャッジ日時 | 2024-07-16 03:49:58 |
| 合計ジャッジ時間 | 4,871 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | OLE * 1 -- * 30 |
ソースコード
#include<stdio.h>
int main(void)
{
int n,tmp[1024*1024],*p;
p=tmp;
*p=0;
scanf("%d",&n);
while(n!=0){
*(p++)=n%7;
n/=7;
}
while((--p)!=tmp){
printf("%d",*p);
}
printf("%d\n",*p);
return 0;
}
apple3cl