File tree Expand file tree Collapse file tree 5 files changed +7
-56
lines changed
Expand file tree Collapse file tree 5 files changed +7
-56
lines changed Original file line number Diff line number Diff line change @@ -16,32 +16,17 @@ using namespace std;
1616using i64 = long long ;
1717using u64 = unsigned long long ;
1818using u32 = unsigned ;
19- void printDivisors (unsigned long long n)
20- { if (n%2 ==1 ){
21- cout<<" YES" <<endl;
22- return ;
23- }
24- for (unsigned long long i = 1 ; i <= sqrt (n); i++) {
25- if ((n % i == 0 )&&(i>1 &&i&1 )) {
26- cout<<i<<endl;
27- cout<<" YES" <<endl;
28- return ;
29- }
30- }
31- cout<<" NO" <<endl;
32- return ;
33- }
3419int main () {
3520 FIO;
3621#ifndef ONLINE_JUDGE
3722 freopen (" input.txt" , " r" , stdin);
3823 freopen (" output.txt" , " w" , stdout);
3924#endif
40- unsigned long long tc;
25+ int tc;
4126 cin >> tc;
4227 while (tc--) {
43- unsigned long long n;
28+ int n;
4429 cin >> n;
45- printDivisors (n) ;
30+ cout<<n ;
4631 }
4732}
Original file line number Diff line number Diff line change @@ -25,23 +25,8 @@ int main() {
2525 int tc;
2626 cin >> tc;
2727 while (tc--) {
28- int a,b,k;
29- cin >> a>>b>>k;
30- int arr1[a],arr2[b];
31- for (int i=0 ;i<k;i++)
32- cin>>arr1[i];
33- for (int i=0 ;i<k;i++)
34- cin>>arr2[i];
35- int count=0 ;
36- for (int i=0 ;i<k-1 ;i++){
37- int a1=arr1[i];
38- int b1=arr2[i];
39- for (int j=i+1 ;j<k;j++){
40- if (a1!=arr1[j]&&b1!=arr2[j]){
41- count++;
42- }
43- }
44- }
45- cout<<count<<endl;
28+ int n;
29+ cin >> n;
30+ cout<<n;
4631 }
4732}
Original file line number Diff line number Diff line change @@ -27,12 +27,6 @@ int main() {
2727 while (tc--) {
2828 int n;
2929 cin >> n;
30- if ((n/2020 )>=(n%2020 ))
31- cout<<" YES" <<endl;
32- else
33- {
34- cout<<" NO" <<endl;
35- }
36-
30+ cout<<n;
3731 }
3832}
Original file line number Diff line number Diff line change 1- 3
2- 3 4 4
3- 1 1 2 3
4- 2 3 2 4
5- 1 1 1
6- 1
7- 1
8- 2 2 4
9- 1 1 2 2
10- 1 2 1 2
Original file line number Diff line number Diff line change 1- 4
2- 0
3- 2
You can’t perform that action at this time.
0 commit comments