Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
44669 wuxinyue 与7相关的数 C++ Accepted 0 MS 244 KB 303 2024-04-01 21:13:10

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; int n; cin >> n; a = n % 10; b = n / 10 % 10; c = n / 100 % 10; d = n % 7; if(a == 7 or b == 7 or c == 7 or d == 0){ cout << "yes"; } else{ cout << "no"; } return 0; }


Judgement Protocol: