#6965: 為什麼一直WA


Pixes123 (莫爵)

學校 : 國立中央大學
編號 : 26718
來源 : [140.115.183.185]
最後登入時間 :
2015-08-12 09:31:05

#include <iostream>
#include <cstring>
#include <cmath>
using namespace std;

int main()
{
    char str[8];
    while(cin.getline(str,8)){
          for(int i=0;i<strlen(str)-1;i++)
          cout << fabs(str[i+1]-str[i]);
}

return 0;
}

#6966: Re:為什麼一直WA


Pixes123 (莫爵)

學校 : 國立中央大學
編號 : 26718
來源 : [140.115.183.185]
最後登入時間 :
2015-08-12 09:31:05

可以囉^^