結果
問題 |
No.164 ちっちゃくないよ!!
|
ユーザー |
|
提出日時 | 2015-03-14 02:34:49 |
言語 | C90 (gcc 12.3.0) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 1,404 ms |
コンパイル使用メモリ | 25,984 KB |
最終ジャッジ日時 | 2025-02-19 14:14:50 |
合計ジャッジ時間 | 1,818 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function 'main': main.c:15:17: error: C++ style comments are not allowed in ISO C90 15 | //B+1==16の時先頭の0Xを読むので、strtoullの失敗による制御は不可 | ^ main.c:15:17: note: (this will be reported only once per input file)
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned long long ull; int main(){ ull R=1ULL<<63; int N,B,i; char s[99]; for(scanf("%d",&N);N--;){ scanf("%s",s); for(B=i=0;i<strlen(s);i++){ int b=s[i]>=65?s[i]-55:s[i]-48; if(B<b)B=b; } //B+1==16の時先頭の0Xを読むので、strtoullの失敗による制御は不可 ull r=strtoull(s,NULL,B+1); if(R>r)R=r; } printf("%llu\n",R); return 0; }