60372023-10-28 18:45:11tomi7Oszthatóság 17-tel (60 pont)cpp11Wrong answer 0/603ms4428 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
    long long n;
	cin>>n;
	if(n%17==0){
		cout<<"YES"<<'\n';
	}else{
		cout<<"NO"<<'\n';
	}
	while(true){
		if(n==0){
			break;
		}
		if(n/10-n%10*5<0){
			break;
		}else{
			n=n/10-n%10*5;
			cout<<n<<' ';
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base0/60
1Wrong answer0/03ms1876 KiB
2Wrong answer0/03ms2068 KiB
3Wrong answer0/33ms2320 KiB
4Wrong answer0/33ms2428 KiB
5Wrong answer0/43ms2636 KiB
6Wrong answer0/43ms2836 KiB
7Wrong answer0/43ms3048 KiB
8Wrong answer0/53ms3260 KiB
9Wrong answer0/52ms3512 KiB
10Wrong answer0/53ms3680 KiB
11Wrong answer0/53ms3800 KiB
12Wrong answer0/62ms3896 KiB
13Wrong answer0/63ms4108 KiB
14Wrong answer0/63ms4196 KiB
15Wrong answer0/23ms4184 KiB
16Wrong answer0/23ms4428 KiB