ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#204636 | #3613. 虚拟 | sesame | 100 | 576ms | 1252kb | C++ | 339b | 2024-06-08 09:30:39 | 2024-06-08 13:05:04 |
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int x,y,n,rem;
void solve(){
cin>>x>>y>>n;
rem=y%x;
while(n)
{
if(n%x==rem)
{
cout<<n;
break;
}
n--;
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
int t=1;
//cin>>t;
while (t--){
solve();
}
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 10
Accepted
time: 0ms
memory: 1248kb
input:
465339 464685 627111
output:
464685
result:
ok single line: '464685'
Test #2:
score: 10
Accepted
time: 0ms
memory: 1248kb
input:
135919 87788 637302
output:
631464
result:
ok single line: '631464'
Test #3:
score: 10
Accepted
time: 0ms
memory: 1252kb
input:
239520 54506 535989
output:
533546
result:
ok single line: '533546'
Test #4:
score: 10
Accepted
time: 0ms
memory: 1248kb
input:
621228 403232 733486
output:
403232
result:
ok single line: '403232'
Test #5:
score: 10
Accepted
time: 0ms
memory: 1252kb
input:
403866 132198 557082
output:
536064
result:
ok single line: '536064'
Test #6:
score: 10
Accepted
time: 267ms
memory: 1252kb
input:
343126058 293922362 710079153
output:
637048420
result:
ok single line: '637048420'
Test #7:
score: 10
Accepted
time: 131ms
memory: 1252kb
input:
205441392 97818639 552596456
output:
508701423
result:
ok single line: '508701423'
Test #8:
score: 10
Accepted
time: 140ms
memory: 1252kb
input:
151713996 105315034 912308370
output:
863885014
result:
ok single line: '863885014'
Test #9:
score: 10
Accepted
time: 4ms
memory: 1248kb
input:
8484527 7246875 772029573
output:
770854305
result:
ok single line: '770854305'
Test #10:
score: 10
Accepted
time: 34ms
memory: 1248kb
input:
22143952 6964897 993204999
output:
981298785
result:
ok single line: '981298785'