Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
318076 李南笙 【C1-T】计算邮资 C++ Wrong Answer 0 0 MS 240 KB 246 2025-04-18 18:50:50

Tests(0/2):


#include<iostream> using namespace std; int main(){ int a,c; char b; cin>>a>>b; if(a<=1000){ c=8; }else if((a-1000)/500%4==0){ c=8+(a-1000)/500*4; }else{ c=8+(a-1000)/500*4+4; } if(b=='y'){ c=c+5; } return 0; }


Judgement Protocol: