60362023-10-28 18:41:32tomi7Oszthatóság 17-tel (60 pont)cpp11Wrong answer 0/603ms4144 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/33ms2288 KiB
4Wrong answer0/33ms2372 KiB
5Wrong answer0/43ms2508 KiB
6Wrong answer0/43ms2756 KiB
7Wrong answer0/43ms2968 KiB
8Wrong answer0/53ms3212 KiB
9Wrong answer0/53ms3428 KiB
10Wrong answer0/53ms3512 KiB
11Wrong answer0/52ms3588 KiB
12Wrong answer0/63ms3812 KiB
13Wrong answer0/63ms4024 KiB
14Wrong answer0/63ms4144 KiB
15Wrong answer0/23ms4120 KiB
16Wrong answer0/23ms4004 KiB