1 solutions

  • 3
    @ 2026-3-21 11:02:20

    这题非常有操作 可以发现 样例似乎有点水 所以代码很简单

    #include <iostream>
    int n;
    
    int main() {
    	std::cin >> n;
    	if (!(n % 10)) std::cout << 0 << '\n';
    	else std::cout << n << '\n';
    	return 0;
    }
    

    Information

    ID
    28474
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    9
    Tags
    # Submissions
    314
    Accepted
    24
    Uploaded By