結果
問題 | No.463 魔法使いのすごろく🎲 |
ユーザー |
![]() |
提出日時 | 2025-06-28 11:51:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 412 bytes |
コンパイル時間 | 1,466 ms |
コンパイル使用メモリ | 162,324 KB |
実行使用メモリ | 7,976 KB |
最終ジャッジ日時 | 2025-06-28 11:51:35 |
合計ジャッジ時間 | 3,037 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 34 |
ソースコード
#include<bits/stdc++.h> using namespace std; int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} return x*f; } int a[1000000]; int main(){ // freopen("turnback.in","r",stdin); // freopen("turnback.out","w",stdout); int n,m,ans=0; cin>>n>>m; for(int i=1;i<=n-2;i++)ans+=read(); cout<<ans<<"\n"; return 0; }