Submission #2027005


Source Code Expand

Copy
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <queue>
#include <sstream>
#include <stack>
#include <time.h>
#include <vector>
#include <complex>
using namespace std;
int main(){
  int x,a,b;
  cin>>x>>a>>b;
  cout<<(x-a)%b;
  system ("pause");
  return 0;
  }

Submission Info

Submission Time
Task A - Buying Sweets
User Derek
Language C++14 (GCC 5.4.1)
Score 100
Code Size 394 Byte
Status
Exec Time 2 ms
Memory 504 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:20:19: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   system ("pause");
                   ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample01.txt, sample02.txt, sample03.txt, sample04.txt
All 100 / 100 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, sample01.txt, sample02.txt, sample03.txt, sample04.txt
Case Name Status Exec Time Memory
01.txt 2 ms 504 KB
02.txt 2 ms 504 KB
03.txt 2 ms 504 KB
04.txt 2 ms 504 KB
05.txt 2 ms 504 KB
06.txt 2 ms 500 KB
sample01.txt 2 ms 504 KB
sample02.txt 2 ms 500 KB
sample03.txt 2 ms 504 KB
sample04.txt 2 ms 504 KB