Submission #1863956


Source Code Expand

#include <iostream>
#include <string.h>
#include <algorithm.h>
string s;

int main(){
	cin >> s;
  	int pos=0;
  	REP(i,0,s.size()) pos+=s[i]-'0';
  	cout << (stoll(s)%pos?"No":"Yes") << endl;
	
  	return 0;
}

Submission Info

Submission Time
Task B - Harshad Number
User e1715
Language C++14 (GCC 5.4.1)
Score 0
Code Size 221 Byte
Status CE

Compile Error

./Main.cpp:3:23: fatal error: algorithm.h: No such file or directory
 #include <algorithm.h>
                       ^
compilation terminated.