C/C++の宿題片付けます 156代目at TECH
C/C++の宿題片付けます 156代目 - 暇つぶし2ch535: ◆T7UZkyB.V6
12/03/18 07:57:32.20
>>534
#include <stdio.h>
#include <math.h>
int main(){
  int in1, in2, in3;
  char buf[80];

  while(!eof(stdin)){
    gets(buf);
    sscanf(buf, "%d%d", &in1, &in2);
    in3 = in1 + in2;
    printf(int(log10(in3)+1));
  }
}
微妙にノーコンパイルにしておいた。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch