제출 #42689

#제출 시각아이디문제언어결과실행 시간메모리
42689iletavcioskiOlivander (COCI18_olivander)C++14
0 / 50
1076 ms704 KiB
#include <iostream> #include <vector> using namespace std; typedef long long ll; int main() { int n; cin>>n; for(int i=100;i>=0;i++) { int br=364*i; int b=n; b-=br; if(b<0) continue; if(b%1092==0) { cout<<i<<" "<<b/1092<<endl; return 0; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...