Submission #308790
Source Code Expand
#include <iostream> #include <stack> #include <string> #include <vector> #include <queue> #include <algorithm> #include <stdlib.h> #include <math.h> #include <stdio.h> int max(int a,int b){ if(a>=b)return a; else return b; } void swap(int *a,int *b){ int tmp = *a; *a = *b; *b = tmp; } void babbleSort(int *data,int n){ for(int i=0;i<n;i++){ for(int j=n-1;j>i;j--){ if(data[j]>=data[j-1]){ swap(&data[j],&data[j-1]); } } } } using namespace std; long long int mod; long long int mod2; /* cin.ignore(); getline(cin,dataStr); data = new int[n]; stringToInteger(&dataStr,data,n); */ void stringToInteger(string *str,int *data,int n){ for(int i=0;i<n;i++){ int spaceN = str->find(' ',0); data[i] = atoi(str->substr(0,spaceN).c_str()); str->erase(0,spaceN+1); } } long long int fact(int a){ long long int sum=1; for(int i=1;i<=a;i++){ sum*=i; sum%=mod; } cout<<a<<" "<<sum<<endl; return sum; } long long int P[1000][1000]; void makePascalTriangle(){ for(int i=0;i<1000;i++){ for(int j=0;j<=i;j++){ if(i==j||j==0){ P[i][j]=1; } else{ P[i][j] = (P[i-1][j-1]+P[i-1][j])%mod; } // cout<<P[i][j]<<" "; } } } int main(){ int h1,h2; cin>>h1>>h2; cout<<h1-h2<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | soto800 |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 1348 Byte |
Status | AC |
Exec Time | 25 ms |
Memory | 924 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 22 ms | 924 KB |
00_sample_02.txt | AC | 23 ms | 808 KB |
00_sample_03.txt | AC | 24 ms | 800 KB |
test_01.txt | AC | 23 ms | 744 KB |
test_02.txt | AC | 24 ms | 796 KB |
test_03.txt | AC | 23 ms | 680 KB |
test_04.txt | AC | 24 ms | 680 KB |
test_05.txt | AC | 23 ms | 720 KB |
test_06.txt | AC | 23 ms | 796 KB |
test_07.txt | AC | 24 ms | 804 KB |
test_08.txt | AC | 25 ms | 732 KB |
test_09.txt | AC | 24 ms | 672 KB |
test_10.txt | AC | 23 ms | 796 KB |
test_11.txt | AC | 25 ms | 800 KB |
test_12.txt | AC | 24 ms | 804 KB |
test_13.txt | AC | 24 ms | 796 KB |
test_14.txt | AC | 24 ms | 676 KB |
test_15.txt | AC | 25 ms | 800 KB |
test_16.txt | AC | 22 ms | 804 KB |
test_17.txt | AC | 24 ms | 800 KB |