1 solutions

  • 0
    @ 2026-3-3 22:02:17
    #include<bits/stdc++.h>
    using namespace std;
    int a,k;
    int main()
    {
    	cin>>a;
    	while(111*k<a)
    	{
    		k++;
    	}
    	cout<<111*k;
    	return 0;
    }
    
    • 1

    Information

    ID
    1786
    Time
    2000ms
    Memory
    1024MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    43
    Accepted
    17
    Uploaded By