Commit 1d2fe534 authored by Shubhranshu's avatar Shubhranshu

Upload new file

parent 3efcdf01
#!/bin/bash
diff generated_output.txt actual_output.txt > diff.txt
#Wrong answers only
wrong=$(grep -c "^>" diff.txt)
#Total test cases
n=$(wc -w < actual_output.txt)
#Correct cases
x=$((n-wrong))
#Desired O/P
echo "Secured $x marks out of $n"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment