| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159474 | 张宇泽 | 挂盐水 | C++ | Wrong Answer | 4 MS | 272 KB | 318 | 2026-09-02 19:22:55 |
#include<bits/stdc++.h> using namespace std; int main() { int a,d; while(cin>>a>>d) { int c=(a+d-1)/d; int k=0,sum=0; for(int i=1;sum+i<=c;i++) { sum+=i; k=i; } int n=c+(k-1); cout<<n; } return 0; }
------Input------
1853 391 3525 2027 2269 609 4494 4310 826 401 1497 545 1434 1411 1013 971 3460 466 3961 1990 3537 3394 4753 4455 1745 434 1540 695 2985 2201 1661 723 4675 2552 2967 2383 3479 3058 3164 923 3169 1476 1223 968 715 39 2561 1322 3412 1993 2401 1884 121 119 1967 702 595 53 123 65 3825 3196 4665 3645 895 646 4200 1524 2743 2604 3547 2648 4032 3156 2712 1513 1740 1201 583 52 134 71 13 12 3747 2965 2298 1302 4864 1661 4151 637 437 398 3052 2413 641 58 1993 699 2214 1925 4252 250 2718 2655 994 532 469 22
------Answer-----
7 3 6 3 4 4 3 3 11 3 3 3 7 4 3 4 3 3 3 6 4 3 24 3 3 3 3 4 16 3 3 3 3 4 3 3 3 3 3 16 3 3 3 3 4 10 3 3 16 4 3 23 3 3 4 4 3 4 3 3 3 36 4 6 3 3 3 4 4 6 4 10 4 3 4 4 3 6 6 3 3 7 10 43 6 3 3 13 13 4 34 3 3 31 3 12 3 10 3 3 3
------Your output-----
625244221022264242225422322224152222422222152222492215422222442422235452224454942442552269435221313434223021129222