Submission #64500585
Source Code Expand
Copy
#include<bits/stdc++.h>#define int long long// #define getchar_unlocked() getchar()using namespace std;inline int read() {int x=0,ff=1;char ch=getchar_unlocked();while(ch<48||ch>57) {if(ch==45)ff=-1;ch=getchar_unlocked();}while(ch>=48&&ch<=57) x=(x<<3)+(x<<1)+(ch^48),ch=getchar_unlocked();return x*ff;}inline void write(int x){if(!x){putchar(48),putchar('\n');return;}if(x<0)putchar(45),x=-x;char a[20];int i=0;while(x)a[++i]=x%10+48,x/=10;for(;i;i--)putchar(a[i]);putchar('\n');}const int N = 5e6 + 10;int n,m,a[N];signed main() {string s;n = read();if(400%n==0)cout<<400/n;else cout<<-1;return 0;}
#include<bits/stdc++.h> #define int long long // #define getchar_unlocked() getchar() using namespace std; inline int read() {int x=0,ff=1;char ch=getchar_unlocked();while(ch<48||ch>57) {if(ch==45)ff=-1;ch=getchar_unlocked();}while(ch>=48&&ch<=57) x=(x<<3)+(x<<1)+(ch^48),ch=getchar_unlocked();return x*ff;} inline void write(int x){if(!x){putchar(48),putchar('\n');return;}if(x<0)putchar(45),x=-x;char a[20];int i=0;while(x)a[++i]=x%10+48,x/=10;for(;i;i--)putchar(a[i]);putchar('\n');} const int N = 5e6 + 10; int n,m,a[N]; signed main() { string s; n = read(); if(400%n==0)cout<<400/n; else cout<<-1; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ABC400 Party |
User | nzy2011 |
Language | C++ 17 (gcc 12.2) |
Score | 100 |
Code Size | 646 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3672 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt, testcase20.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3468 KB |
sample01.txt | AC | 1 ms | 3672 KB |
sample02.txt | AC | 1 ms | 3476 KB |
testcase00.txt | AC | 1 ms | 3508 KB |
testcase01.txt | AC | 1 ms | 3536 KB |
testcase02.txt | AC | 1 ms | 3536 KB |
testcase03.txt | AC | 1 ms | 3532 KB |
testcase04.txt | AC | 1 ms | 3528 KB |
testcase05.txt | AC | 1 ms | 3464 KB |
testcase06.txt | AC | 1 ms | 3532 KB |
testcase07.txt | AC | 1 ms | 3476 KB |
testcase08.txt | AC | 1 ms | 3668 KB |
testcase09.txt | AC | 1 ms | 3464 KB |
testcase10.txt | AC | 1 ms | 3532 KB |
testcase11.txt | AC | 1 ms | 3484 KB |
testcase12.txt | AC | 1 ms | 3528 KB |
testcase13.txt | AC | 1 ms | 3468 KB |
testcase14.txt | AC | 1 ms | 3396 KB |
testcase15.txt | AC | 1 ms | 3544 KB |
testcase16.txt | AC | 1 ms | 3536 KB |
testcase17.txt | AC | 1 ms | 3528 KB |
testcase18.txt | AC | 1 ms | 3552 KB |
testcase19.txt | AC | 1 ms | 3524 KB |
testcase20.txt | AC | 1 ms | 3552 KB |