#include <iostream>using namespace std;int main(int argc, char** argv) { unsigned long long int a,b; while(cin>>a>>b){ if(b!=0) cout<<a/b<<" "<<a%b<<endl; }}
上面是我C++寫的
想問為何這會WA
#include using namespace std;int main(int argc, char** argv) { unsigned long long int a,b; while(cin>>a>>b){ if(b!=0) cout<<a/b<<" "<<a%b<<endl; }}
那個範圍 long long 存不下啊 0u0...